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
Stack Of Tasks
sot-dynamic-pinocchio
Commits
d4c97547
Commit
d4c97547
authored
Aug 17, 2018
by
Guilhem Saurel
Browse files
[CMake] fix build with python
parent
d304407c
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d4c97547
...
...
@@ -47,6 +47,17 @@ ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
ADD_REQUIRED_DEPENDENCY
(
"sot-core >= 3.0.0"
)
ADD_REQUIRED_DEPENDENCY
(
"sot-tools >= 2.0.0"
)
SET
(
BOOST_COMPONENTS filesystem system unit_test_framework
)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python binding"
ON
)
IF
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
ADD_REQUIRED_DEPENDENCY
(
"dynamic-graph-python >= 3.0.0"
)
SET
(
BOOST_COMPONENTS
${
BOOST_COMPONENTS
}
python
)
INCLUDE_DIRECTORIES
(
${
PYTHON_INCLUDE_PATH
}
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
# List plug-ins that will be compiled.
SET
(
plugins
zmpreffromcom
...
...
@@ -66,18 +77,6 @@ LIST(APPEND plugins dynamic)
# Add dependency toward sot-dynamic-pinocchio library in pkg-config file.
PKG_CONFIG_APPEND_LIBS
(
${
LIBRARY_NAME
}
)
# Search for dependencies.
# Boost
SET
(
BOOST_COMPONENTS filesystem system unit_test_framework
)
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python binding"
ON
)
IF
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
ADD_REQUIRED_DEPENDENCY
(
"dynamic-graph-python >= 3.0.0"
)
SET
(
BOOST_COMPONENTS
${
BOOST_COMPONENTS
}
python
)
INCLUDE_DIRECTORIES
(
${
PYTHON_INCLUDE_PATH
}
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
SEARCH_FOR_BOOST
()
SEARCH_FOR_EIGEN
()
...
...
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