Commit bf64feb1 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[Tests] examples : define path to files in the CMakeList

parent 4ddf64ce
......@@ -16,6 +16,7 @@ FOREACH(TEST ${${PROJECT_NAME}_TESTS})
PKG_CONFIG_USE_DEPENDENCY(${TEST} pinocchio)
PKG_CONFIG_USE_DEPENDENCY(${TEST} curves)
ENDFOREACH(TEST ${${PROJECT_NAME}_TESTS})
TARGET_COMPILE_DEFINITIONS(examples PRIVATE -DTEST_DATA_PATH="${CMAKE_CURRENT_SOURCE_DIR}/../examples/")
IF(BUILD_PYTHON_INTERFACE)
ADD_SUBDIRECTORY(python)
......
......@@ -27,7 +27,7 @@
using namespace multicontact_api::scenario;
const std::string path = "../examples/";
const std::string path = TEST_DATA_PATH;
BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
BOOST_AUTO_TEST_CASE(com_motion_above_feet_COM) {
......
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