Skip to content

Commit 12481a8

Browse files
authored
Merge pull request #175 from machines-in-motion/topic/mnaveau/tracer_dependency_in_tests
[tests] Fix the -ltracer not found by depending on the exported target.
2 parents 9c0b1b3 + 1679f3d commit 12481a8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ SET(TEST_tsot_LIBS
1717
gain-adaptive
1818
)
1919

20-
LINK_DIRECTORIES(${DYNAMIC_GRAPH_PLUGINDIR})
21-
22-
SET(TEST_test_traces_EXT_LIBS tracer)
20+
SET(TEST_test_traces_EXT_LIBS dynamic-graph::tracer)
2321

2422
SET(TEST_test_gain_LIBS
2523
gain-adaptive feature-visual-point)
@@ -109,8 +107,6 @@ IF(UNIX)
109107
pluginabstract ${CMAKE_DL_LIBS})
110108
ENDIF(UNIX)
111109

112-
# find -ltracer. TODO: that's ugly, properly export a component for each plugin instead.
113-
LINK_DIRECTORIES("${dynamic-graph_DIR}/../../../${DYNAMIC_GRAPH_PLUGINDIR}")
114110
FOREACH(path ${tests})
115111
GET_FILENAME_COMPONENT(test ${path} NAME)
116112
ADD_UNIT_TEST(${test} ${path}.cpp)

0 commit comments

Comments
 (0)