Skip to content

Commit

Permalink
Merge branch 'cmake-option-build-test' into 'master'
Browse files Browse the repository at this point in the history
cmakelists: Add an option to build documentation

See merge request sfcgal/SFCGAL!335
  • Loading branch information
ptitjano committed Aug 23, 2024
2 parents c03c1bd + 1f0a3fe commit 1940224
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ endif()
option( SFCGAL_BUILD_EXAMPLES "build examples" OFF )
option( SFCGAL_BUILD_TESTS "build unit and regress tests" OFF )
option( SFCGAL_BUILD_BENCH "Build benchmarks" OFF )
option( SFCGAL_BUILD_DOC "Build documentation" OFF )

option( SFCGAL_WITH_OSG "Compile with OpenSceneGraph support" OFF )

Expand Down Expand Up @@ -233,7 +234,9 @@ if( SFCGAL_BUILD_EXAMPLES )
endif()

#-- doxygen documentation (allows make doc when doxygen is found)
add_subdirectory( doc )
if( SFCGAL_BUILD_DOC )
add_subdirectory( doc )
endif()

#-- install directories
install(DIRECTORY ${CMAKE_BINARY_DIR}/include DESTINATION .)
Expand Down

0 comments on commit 1940224

Please sign in to comment.