aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-08-27 11:40:03 -0400
committerDeterminant <[email protected]>2018-08-27 11:40:03 -0400
commit824afd167a52dfc3b39d96ebae1c91a5c69d4099 (patch)
treee255b3f69810d41e8fbf545d504a1b589e074819
parentd2c471c2300141529983be425f7ad75d371fcdf7 (diff)
...
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6bcf5f0..614e328 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,10 @@ add_library(salticidae_static STATIC $<TARGET_OBJECTS:salticidae>)
set_target_properties(salticidae_static PROPERTIES OUTPUT_NAME "salticidae")
target_link_libraries(salticidae_static event crypto)
-add_subdirectory(test)
+option(BUILD_TEST "build test binaries." OFF)
+if(BUILD_TEST)
+ add_subdirectory(test)
+endif()
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Release")