aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5e19a45..d91103e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,13 +17,13 @@ endforeach(FILE ${HEADER_FILES})
# This way ChessMoveInterface can be used in multiple submodules
file(GLOB_RECURSE SRC_CPP_FILES src/*.cpp)
if(NOT TARGET ChessMoveInterface)
- add_library(ChessMoveInterface STATIC ${SRC_CPP_FILES})
- target_include_directories(ChessMoveInterface PUBLIC ${CMI_INCLUDE_DIR})
+ add_library(ChessMoveInterface OBJECT ${SRC_CPP_FILES})
+ target_include_directories(ChessMoveInterface PUBLIC ${CMI_INCLUDE_DIR})
endif()
# Unit tests
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
+ enable_testing()
+ add_subdirectory(./tests)
+endif()