testhelpers: link kpmcore to get the include directories from the interface

This commit is contained in:
Friedrich W. H. Kossebau 2020-11-16 19:16:42 +01:00 committed by Andrius Štikonas
parent 32149e6340
commit 2bf69932d1
1 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
include_directories(${CMAKE_SOURCE_DIR}/src) # To get at KPMcore headers
add_compile_options(-fPIC) add_compile_options(-fPIC)
### ###
@ -23,7 +22,7 @@ add_compile_options(-fPIC)
# and to add a test with the given name. # and to add a test with the given name.
# #
add_library(testhelpers STATIC helpers.cpp) add_library(testhelpers STATIC helpers.cpp)
target_link_libraries(testhelpers) target_link_libraries(testhelpers PRIVATE kpmcore)
macro (kpm_test name) macro (kpm_test name)
add_executable(${name} ${ARGN}) add_executable(${name} ${ARGN})