aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4aa6d34..673c25f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,5 +45,10 @@ target_include_directories(${PROJECT_NAME}
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
-add_subdirectory(test)
-add_subdirectory(examples/basic)
+if(test)
+ add_subdirectory(test)
+endif()
+
+if(examples)
+ add_subdirectory(examples/basic)
+endif()