aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-19 15:51:12 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-19 15:51:12 +0100
commit81f06cb209d9d3f092e3ed0ef2e2dbc6b288f1de (patch)
treee610487345e8f8ea78571d262946e978b7ae6247 /CMakeLists.txt
parentda8857549304590d8d32e643a22617318add542a (diff)
Integrate Chess Move Interface
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 64447e9..fd5cddf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,9 +12,16 @@ configure_file(src/PGN.hpp ${PGNP_INCLUDE_DIR}/pgnp.hpp COPYONLY)
configure_file(src/HalfMove.hpp ${PGNP_INCLUDE_DIR} COPYONLY)
configure_file(src/LargeFileStream.hpp ${PGNP_INCLUDE_DIR} COPYONLY)
configure_file(src/Types.hpp ${PGNP_INCLUDE_DIR} COPYONLY)
-
include_directories(${PGNP_INCLUDE_DIR})
+# ChessMoveInterface
+add_subdirectory(libs/chess-move-interface)
+include_directories(${CMI_INCLUDE_DIR})
+
# Unit tests
-enable_testing()
-add_subdirectory(./tests)
+set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
+if(COMPILE_TESTS)
+ enable_testing()
+ add_subdirectory(./tests)
+endif()
+