Skip to content

Commit

Permalink
feat, cmake add cmake options for building tutorial and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SGSSGene committed Jul 23, 2024
1 parent 2ed35be commit 1e7aad1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ endif ()
option (SDSL_CODE_COVERAGE "Set ON to add code coverage compile options" OFF)
option (SDSL_HEADER_TEST "Set ON to run header tests only" OFF)
option (SDSL_BUILD_TESTS "Set ON to build tests" ${PROJECT_IS_TOP_LEVEL})
option (SDSL_BUILD_TUTORIAL "Set ON to build tutorials" ${PROJECT_IS_TOP_LEVEL})
option (SDSL_BUILD_EXAMPLES "Set ON to build examples" ${PROJECT_IS_TOP_LEVEL})
option (SDSL_GENERATE_DOC "Set ON to genrate doxygen API reference in build/doc directory" OFF)
option (SDSL_USE_LIBCPP "Use the LLVM libc++ instead of GCC libstdc++ on OS X" ON)

Expand Down Expand Up @@ -65,5 +67,9 @@ endif()
# (10) perform extra tasks such as doxygen / packaging and uninstall target
add_subdirectory (extras)

add_subdirectory (tutorial)
add_subdirectory (examples)
if (SDSL_BUILD_TUTORIAL)
add_subdirectory (tutorial)
endif()
if (SDSL_BUILD_EXAMPLES)
add_subdirectory (examples)
endif()

0 comments on commit 1e7aad1

Please sign in to comment.