Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
KPMCore
Commits
2bf69932
Commit
2bf69932
authored
Nov 16, 2020
by
Friedrich W. H. Kossebau
Committed by
Andrius Štikonas
Nov 16, 2020
Browse files
testhelpers: link kpmcore to get the include directories from the interface
parent
32149e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/CMakeLists.txt
View file @
2bf69932
...
...
@@ -14,7 +14,6 @@ set(CMAKE_SKIP_BUILD_RPATH FALSE)
SET
(
CMAKE_BUILD_WITH_INSTALL_RPATH FALSE
)
set
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src
)
# To get at KPMcore headers
add_compile_options
(
-fPIC
)
###
...
...
@@ -23,7 +22,7 @@ add_compile_options(-fPIC)
# and to add a test with the given name.
#
add_library
(
testhelpers STATIC helpers.cpp
)
target_link_libraries
(
testhelpers
)
target_link_libraries
(
testhelpers
PRIVATE kpmcore
)
macro
(
kpm_test name
)
add_executable
(
${
name
}
${
ARGN
}
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment