We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90ea7a commit a211f6eCopy full SHA for a211f6e
tests/CMakeLists.txt
@@ -115,13 +115,13 @@ FOREACH(path ${tests})
115
GET_FILENAME_COMPONENT(test ${path} NAME)
116
ADD_UNIT_TEST(${test} ${path}.cpp)
117
118
- TARGET_LINK_LIBRARIES(${test}
119
- PUBLIC
120
- ${PROJECT_NAME}
121
- ${Boost_LIBRARIES}
+ TARGET_LINK_LIBRARIES(${test} ${PROJECT_NAME} ${Boost_LIBRARIES}
122
${TEST_${test}_LIBS} ${TEST_${test}_EXT_LIBS}
123
dynamic-graph::dynamic-graph)
124
+ TARGET_INCLUDE_DIRECTORIES(${test}
+ SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
+
125
IF(UNIX)
126
TARGET_LINK_LIBRARIES(${test} ${CMAKE_DL_LIBS})
127
ENDIF(UNIX)
0 commit comments