Update chess-move-interface and improve CMake integration

This commit is contained in:
Loic Guegan 2023-05-02 19:38:40 +02:00
parent 943ddf3aa5
commit 2df779cef1
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
project(pgnp)
# Shared library
add_library(pgnp SHARED src/PGN.cpp src/HalfMove.cpp src/LargeFileStream.cpp)
add_library(pgnp STATIC src/PGN.cpp src/HalfMove.cpp src/LargeFileStream.cpp)
# Includes
set(PGNP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/includes) # For conveniance
@ -16,7 +16,6 @@ include_directories(${PGNP_INCLUDE_DIR})
# ChessMoveInterface
add_subdirectory(libs/chess-move-interface)
include_directories(${CMI_INCLUDE_DIR})
target_link_libraries(pgnp PUBLIC ChessMoveInterface)
# Add include directiries to target to be independent of ${PGNP_INCLUDE_DIR} and ${CMI_INCLUDE_DIR}

@ -1 +1 @@
Subproject commit 7125292878ffc3568018e1e509c9210a074c67a6
Subproject commit 03ce4126cfa09ff0a55e70bdc44c1d5dd4035043