Unverified Commit 12481a81 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

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.
parents 9c0b1b3c 1679f3d6
Pipeline #12277 passed with stage
in 33 minutes and 44 seconds
......@@ -17,9 +17,7 @@ SET(TEST_tsot_LIBS
gain-adaptive
)
LINK_DIRECTORIES(${DYNAMIC_GRAPH_PLUGINDIR})
SET(TEST_test_traces_EXT_LIBS tracer)
SET(TEST_test_traces_EXT_LIBS dynamic-graph::tracer)
SET(TEST_test_gain_LIBS
gain-adaptive feature-visual-point)
......@@ -109,8 +107,6 @@ IF(UNIX)
pluginabstract ${CMAKE_DL_LIBS})
ENDIF(UNIX)
# find -ltracer. TODO: that's ugly, properly export a component for each plugin instead.
LINK_DIRECTORIES("${dynamic-graph_DIR}/../../../${DYNAMIC_GRAPH_PLUGINDIR}")
FOREACH(path ${tests})
GET_FILENAME_COMPONENT(test ${path} NAME)
ADD_UNIT_TEST(${test} ${path}.cpp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment