Skip to content

Commit

Permalink
Add CMake options for building doc and sandbox
Browse files Browse the repository at this point in the history
relates #739
  • Loading branch information
AzothAmmo committed Feb 28, 2022
1 parent 39d2020 commit 6e1c66a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ if(APPLE)
option(SKIP_PORTABILITY_TEST "Skip portability (32 bit) tests" ON)
endif()

option(SKIP_PERFORMANCE_COMPARISON "Skip building performance comparison (requires boost)" OFF)
option(BUILD_DOC "Build documentation" ON)
option(BUILD_SANDBOX "Build sandbox examples" ON)
option(SKIP_PERFORMANCE_COMPARISON "Skip building performance sandbox comparison (requires boost)" OFF)

# TODO: should not be needed! CK
if(NOT CMAKE_VERSION VERSION_LESS 3.0) # installing cereal requires INTERFACE lib
Expand Down Expand Up @@ -116,6 +118,12 @@ if(BUILD_TESTS)
add_subdirectory(unittests)
endif()

add_subdirectory(sandbox)

add_subdirectory(doc)
if(BUILD_SANDBOX)
add_subdirectory(sandbox)
endif()


if(BUILD_DOC)
add_subdirectory(doc)
endif()

0 comments on commit 6e1c66a

Please sign in to comment.