We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8281a5a commit bc3d83bCopy full SHA for bc3d83b
CMakeLists.txt
@@ -3,6 +3,9 @@ project(CppNumericalSolvers VERSION 1.0.0 LANGUAGES CXX)
3
4
add_library(CppNumericalSolvers INTERFACE)
5
6
+option(BUILD_EXAMPLES "Build the examples" ON)
7
+option(BUILD_TESTS "Build the tests" ON)
8
+
9
target_include_directories(CppNumericalSolvers
10
INTERFACE
11
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
@@ -40,7 +43,11 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CppNumericalSolversConfig.cmake
40
43
DESTINATION lib/cmake/CppNumericalSolvers
41
44
)
42
45
-add_subdirectory(src/examples)
46
+if(BUILD_EXAMPLES)
47
+ add_subdirectory(src/examples)
48
+endif()
49
-enable_testing()
-add_subdirectory(src/test)
50
+if(BUILD_TESTS)
51
+ enable_testing()
52
+ add_subdirectory(src/test)
53
0 commit comments