From 84e52acd1ac9bc315e4f3cfdb0d7e711a43275ba Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 2 May 2023 19:15:04 +0200 Subject: Update chess-move-interface and improve CMake integration --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') 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") -- cgit v1.2.3