diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-02 19:03:56 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-02 19:03:56 +0200 |
| commit | 0e154098a5048165da6f0623c946bd9a4b3e5749 (patch) | |
| tree | cc5b4c9a3b80131825803f7c47c06367c09b2d4e | |
| parent | 7125292878ffc3568018e1e509c9210a074c67a6 (diff) | |
Switch library to static and improve CMake integration
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 771f289..56d379a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,10 +15,10 @@ endforeach(FILE ${HEADER_FILES}) # Add target if not exists # This way ChessMoveInterface can be used in multiple submodules -include_directories(src) file(GLOB_RECURSE SRC_CPP_FILES src/*.cpp) if(NOT TARGET ChessMoveInterface) - add_library(ChessMoveInterface SHARED ${SRC_CPP_FILES}) + add_library(ChessMoveInterface STATIC ${SRC_CPP_FILES}) + target_include_directories(ChessMoveInterface PUBLIC src) endif() # Unit tests |
