aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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