diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-25 10:53:10 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-01-25 10:53:10 +0100 |
| commit | 4f1d7c524744861ee9cd3052c2ec9e42e83a32ca (patch) | |
| tree | f2be23409388665dc0766be9ba89ee94db9c9379 /CMakeLists.txt | |
| parent | e817ac6bed46737839b592b4308c6d525d70aa2d (diff) | |
Refactoring
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 237f223..2381751 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,13 +2,15 @@ cmake_minimum_required(VERSION 3.10) project(pgnp) # Shared library -add_library(pgnp SHARED src/pgnp.cpp) +add_library(pgnp SHARED src/PGN.cpp src/HalfMove.cpp) # Includes set(PGNP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/includes) # For conveniance set(PGNP_INCLUDE_DIR ${PGNP_INCLUDE_DIR} PARENT_SCOPE) # To be used by other projects with add_subdirectory() file(MAKE_DIRECTORY ${PGNP_INCLUDE_DIR}) -configure_file(src/pgnp.hpp ${PGNP_INCLUDE_DIR} COPYONLY) +configure_file(src/PGN.hpp ${PGNP_INCLUDE_DIR}/pgnp.hpp COPYONLY) +configure_file(src/HalfMove.hpp ${PGNP_INCLUDE_DIR} COPYONLY) + include_directories(${PGNP_INCLUDE_DIR}) # Unit tests |
