Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-fcl
Commits
0b6e6634
Commit
0b6e6634
authored
Jun 24, 2020
by
Joseph Mirabel
Browse files
[python] use Boost system.
parent
ce8c1534
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0b6e6634
...
...
@@ -80,7 +80,7 @@ ADD_PROJECT_DEPENDENCY(Boost REQUIRED)
find_package
(
Boost REQUIRED COMPONENTS filesystem unit_test_framework chrono timer
)
if
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
set
(
BOOST_COMPONENTS python
)
set
(
BOOST_COMPONENTS
system
python
)
search_for_boost
()
endif
()
...
...
python/CMakeLists.txt
View file @
0b6e6634
...
...
@@ -98,7 +98,7 @@ SET(${LIBRARY_NAME}_SOURCES
)
ADD_LIBRARY
(
${
LIBRARY_NAME
}
SHARED
${${
LIBRARY_NAME
}
_SOURCES
}
${${
LIBRARY_NAME
}
_HEADERS
}
)
TARGET_INCLUDE_DIRECTORIES
(
${
LIBRARY_NAME
}
SYSTEM PRIVATE
"
${
Boost_INCLUDE_DIRS
}
"
${
PYTHON_INCLUDE_DIRS
}
)
TARGET_INCLUDE_DIRECTORIES
(
${
LIBRARY_NAME
}
SYSTEM PRIVATE
${
PYTHON_INCLUDE_DIRS
}
)
TARGET_INCLUDE_DIRECTORIES
(
${
LIBRARY_NAME
}
PRIVATE
"
${
CMAKE_SOURCE_DIR
}
/src"
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
IF
(
WIN32
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
PUBLIC
${
PYTHON_LIBRARY
}
)
...
...
@@ -113,8 +113,10 @@ IF(ENABLE_DOXYGEN_AUTODOC)
ENDIF
()
TARGET_LINK_BOOST_PYTHON
(
${
LIBRARY_NAME
}
PUBLIC
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
PUBLIC
${
PROJECT_NAME
}
${
BOOST_system_LIBRARY
}
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
PUBLIC eigenpy::eigenpy
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
PUBLIC
${
PROJECT_NAME
}
eigenpy::eigenpy
Boost::system
)
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES
PREFIX
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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