Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-core
Commits
53b9fb07
Commit
53b9fb07
authored
Jun 16, 2020
by
Olivier Stasse
Browse files
[cmake] Fix target_link_libraries to fix the link dependencies and interface.
This avoid unnecessary target_include_directories.
parent
d0d934ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/CMakeLists.txt
View file @
53b9fb07
...
...
@@ -115,13 +115,13 @@ FOREACH(path ${tests})
GET_FILENAME_COMPONENT
(
test
${
path
}
NAME
)
ADD_UNIT_TEST
(
${
test
}
${
path
}
.cpp
)
TARGET_LINK_LIBRARIES
(
${
test
}
${
PROJECT_NAME
}
${
Boost_LIBRARIES
}
TARGET_LINK_LIBRARIES
(
${
test
}
PUBLIC
${
PROJECT_NAME
}
${
Boost_LIBRARIES
}
${
TEST_
${
test
}
_LIBS
}
${
TEST_
${
test
}
_EXT_LIBS
}
dynamic-graph::dynamic-graph
)
TARGET_INCLUDE_DIRECTORIES
(
${
test
}
SYSTEM PUBLIC
${
Boost_INCLUDE_DIRS
}
)
IF
(
UNIX
)
TARGET_LINK_LIBRARIES
(
${
test
}
${
CMAKE_DL_LIBS
}
)
ENDIF
(
UNIX
)
...
...
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