diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-19 13:31:09 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-19 13:31:09 +0100 |
| commit | 3a4af94254d21e51ae260ad71fcc605ebb7e734e (patch) | |
| tree | ad8fb8c5939c195fab5ca05b122567030f272f53 | |
| parent | 720c394c50e7cb79e6403c408b40dfe8d994230a (diff) | |
Make unit tests optional
| -rw-r--r-- | CMakeLists.txt | 7 |
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 |
