aboutsummaryrefslogtreecommitdiff
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
parent27c01fe045565cd0582683de9e23877957335cd5 (diff)
Improve CMake integration
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/CGEditor.hpp1
2 files changed, 1 insertions, 2 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)
diff --git a/src/CGEditor.hpp b/src/CGEditor.hpp
index 7c4372e..e8b5286 100644
--- a/src/CGEditor.hpp
+++ b/src/CGEditor.hpp
@@ -1,6 +1,5 @@
#pragma once
-#include "Types.hpp"
#include "components/Margin.hpp"
#include "components/Menu.hpp"
#include "components/MoveTable.hpp"