aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-05-02 19:52:56 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-05-02 19:52:56 +0200
commit9a632b7d41eb6e12b18fb4f2f0cee817e4958d2f (patch)
tree2d11935a6f15504d31f3df08bccf47f5913af19d /CMakeLists.txt
parent27c01fe045565cd0582683de9e23877957335cd5 (diff)
Improve CMake integration
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 981c2b6..a47c132 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,9 +14,9 @@ configure_file(${FILE} ${CGEDITOR_INCLUDE_DIR}/${FILE_SUBDIR} COPYONLY)
endforeach(FILE ${HEADER_FILES})
# Compile cgeditor
-include_directories(src)
file(GLOB_RECURSE SRC_CPP_FILES src/*.cpp)
add_library(cgeditor STATIC ${SRC_CPP_FILES})
+target_include_directories(cgeditor PUBLIC ${CGEDITOR_INCLUDE_DIR})
# ChessMoveInterface
add_subdirectory(libs/chess-move-interface)