aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guégan <manzerbredes@mailbox.org>2025-03-18 14:05:18 +0100
committerLoïc Guégan <manzerbredes@mailbox.org>2025-03-18 14:05:18 +0100
commitf0c44e30333517f65d5bada898f242744e74f4f4 (patch)
treeda66fbc37107809db1c21064196025723c08e0b1
parent14ac3bba33a037e4b46b3f7ec9ba05760145f288 (diff)
Change object typeHEADmain
-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()