aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-05-02 19:15:04 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-05-02 19:15:04 +0200
commit84e52acd1ac9bc315e4f3cfdb0d7e711a43275ba (patch)
treec9fbb5f0b7968e5da1ecc925beb86802d839bb20 /CMakeLists.txt
parent83c92b1f48520ed71a9f056badc86c97aafa4e45 (diff)
Update chess-move-interface and improve CMake integration
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5388b1f..981c2b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,11 +16,11 @@ endforeach(FILE ${HEADER_FILES})
# Compile cgeditor
include_directories(src)
file(GLOB_RECURSE SRC_CPP_FILES src/*.cpp)
-add_library(cgeditor SHARED ${SRC_CPP_FILES})
+add_library(cgeditor STATIC ${SRC_CPP_FILES})
# ChessMoveInterface
add_subdirectory(libs/chess-move-interface)
-include_directories(${CMI_INCLUDE_DIR})
+target_link_libraries(cgeditor PRIVATE ChessMoveInterface)
# Examples
set(COMPILE_EXAMPLES FALSE CACHE BOOL "Compiling included examples")