Commit 07012b30 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] fix link to parameter-server

ref https://github.com/stack-of-tasks/sot-core/pull/175
parent 50183353
Pipeline #12280 passed with stage
in 23 minutes
......@@ -7,7 +7,8 @@ ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN)
SET(test_distribute_deps
distribute-wrench
sot-core::sot-core parameter-server
sot-core::sot-core
sot-core::parameter-server
)
#test paths and names (without .cpp extension)
......@@ -16,15 +17,8 @@ SET(tests
test_distribute
)
IF(UNIX)
LINK_DIRECTORIES(${DYNAMIC_GRAPH_PLUGINDIR})
ENDIF(UNIX)
ADD_DEFINITIONS(-DDEBUG=2)
# find -lparameter-server. TODO: that's ugly, properly export a component for each plugin instead.
LINK_DIRECTORIES("${sot-core_DIR}/../../../${DYNAMIC_GRAPH_PLUGINDIR}")
FOREACH(test ${tests})
ADD_UNIT_TEST(${test} ${test}.cpp)
TARGET_LINK_LIBRARIES(${test} PRIVATE ${PROJECT_NAME} ${${test}_deps} Boost::unit_test_framework)
......
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