diff options
-rw-r--r-- | CMakeLists.txt | 9 |
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() |