aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-19 13:31:09 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-19 13:31:09 +0100
commit3a4af94254d21e51ae260ad71fcc605ebb7e734e (patch)
treead8fb8c5939c195fab5ca05b122567030f272f53
parent720c394c50e7cb79e6403c408b40dfe8d994230a (diff)
Make unit tests optional
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbe80e1..771f289 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,5 +22,8 @@ if(NOT TARGET ChessMoveInterface)
endif()
# Unit tests
-enable_testing()
-add_subdirectory(./tests) \ No newline at end of file
+set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
+if(COMPILE_TESTS)
+ enable_testing()
+ add_subdirectory(./tests)
+endif() \ No newline at end of file