mirror of
https://gitlab.com/manzerbredes/pgnp.git
synced 2025-04-06 10:06:25 +02:00
Minor CMake improvements
This commit is contained in:
parent
61eeec2421
commit
fb3828999e
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@ include_directories(${PGNP_INCLUDE_DIR})
|
||||||
# ChessMoveInterface
|
# ChessMoveInterface
|
||||||
add_subdirectory(libs/chess-move-interface)
|
add_subdirectory(libs/chess-move-interface)
|
||||||
include_directories(${CMI_INCLUDE_DIR})
|
include_directories(${CMI_INCLUDE_DIR})
|
||||||
|
target_link_libraries(pgnp PRIVATE ChessMoveInterface)
|
||||||
|
|
||||||
|
# Add include directiries to target to be independent of ${PGNP_INCLUDE_DIR} and ${CMI_INCLUDE_DIR}
|
||||||
|
target_include_directories(pgnp PUBLIC ${CMI_INCLUDE_DIR})
|
||||||
|
target_include_directories(pgnp PUBLIC ${PGNP_INCLUDE_DIR})
|
||||||
|
|
||||||
# Unit tests
|
# Unit tests
|
||||||
set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
|
set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
|
||||||
|
|
Loading…
Add table
Reference in a new issue