Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
loco-3d
Multicontact-api
Commits
bf64feb1
Commit
bf64feb1
authored
Feb 11, 2020
by
Pierre Fernbach
Browse files
[Tests] examples : define path to files in the CMakeList
parent
4ddf64ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
unittest/CMakeLists.txt
View file @
bf64feb1
...
...
@@ -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
)
...
...
unittest/examples.cpp
View file @
bf64feb1
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment