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
Gepetto
example-robot-data
Commits
d2b0b2cb
Commit
d2b0b2cb
authored
Apr 27, 2020
by
Guilhem Saurel
Browse files
[CMake] pinocchio required only for tests, fix #22
parent
6d8313d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d2b0b2cb
...
...
@@ -31,7 +31,7 @@ COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT
(
${
PROJECT_NAME
}
${
PROJECT_ARGS
}
)
IF
(
BUILD_PYTHON_INTERFACE
)
ADD_PROJECT_DEPENDENCY
(
pinocchio
2.1.0 REQUIRED PKG_CONFIG_REQUIRES
"pinocchio >= 2.1.0"
)
ADD_PROJECT_DEPENDENCY
(
pinocchio
)
FINDPYTHON
()
STRING
(
REGEX REPLACE
"-"
"_"
PY_NAME
${
PROJECT_NAME
}
)
ADD_SUBDIRECTORY
(
python
)
...
...
unittest/CMakeLists.txt
View file @
d2b0b2cb
IF
(
NOT pinocchio_FOUND
)
MESSAGE
(
FATAL_ERROR
"Pinocchio is required to build unit tests
\n
"
"please either install Pinocchio or reconfigure without unit tests (-DBUILD_TESTING=OFF)"
)
ENDIF
(
NOT pinocchio_FOUND
)
SET
(
${
PROJECT_NAME
}
_PYTHON_TESTS
load
)
...
...
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