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
Humanoid Path Planner
hpp-centroidal-dynamics
Commits
b632989c
Commit
b632989c
authored
Sep 24, 2019
by
Guilhem Saurel
Browse files
[CMake] allow python 3
parent
44e22f0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
b632989c
...
...
@@ -7,8 +7,8 @@ INCLUDE(cmake/hpp.cmake)
SET
(
PROJECT_NAME hpp-centroidal-dynamics
)
SET
(
PROJECT_DESCRIPTION
"Utility classes for testing (robust) equilibrium of a system in contact with the environment, and other centroidal dynamics methods."
)
"Utility classes for testing (robust) equilibrium of a system in contact with the environment, and other centroidal dynamics methods."
)
SET
(
CUSTOM_HEADER_DIR
"hpp/centroidal-dynamics"
)
...
...
@@ -23,13 +23,12 @@ MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python binding"
ON
)
IF
(
BUILD_PYTHON_INTERFACE
)
# search for python
FINDPYTHON
(
2.7 EXACT REQUIRED
)
find_package
(
PythonLibs 2.7 REQUIRED
)
include_directories
(
${
PYTHON_INCLUDE_DIRS
}
)
# search for python
FINDPYTHON
()
include_directories
(
SYSTEM
${
PYTHON_INCLUDE_DIRS
}
)
find_package
(
Boost COMPONENTS python REQUIRED
)
include_directories
(
${
Boost_INCLUDE_DIR
}
)
find_package
(
Boost COMPONENTS python REQUIRED
)
include_directories
(
SYSTEM
${
Boost_INCLUDE_DIR
}
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
...
...
@@ -54,8 +53,8 @@ else()
endif
()
IF
(
CLP_FOUND
)
ADD_DEFINITIONS
(
-DCLP_FOUND
)
INCLUDE_DIRECTORIES
(
SYSTEM
"
${
CLP_INCLUDE_DIR
}
"
)
ADD_DEFINITIONS
(
-DCLP_FOUND
)
INCLUDE_DIRECTORIES
(
SYSTEM
"
${
CLP_INCLUDE_DIR
}
"
)
ENDIF
()
...
...
@@ -63,7 +62,7 @@ ADD_SUBDIRECTORY (include/${CUSTOM_HEADER_DIR})
add_subdirectory
(
src
)
add_subdirectory
(
test
)
IF
(
BUILD_PYTHON_INTERFACE
)
add_subdirectory
(
python
)
add_subdirectory
(
python
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
SETUP_HPP_PROJECT_FINALIZE
()
cmake
@
bbdade93
Compare
5c8c19f4
...
bbdade93
Subproject commit
5c8c19f491f2c6f8488f5f37ff81d711d69dbb3f
Subproject commit
bbdade93ad2a4b7818cb5d5b9f0bf131627e0b71
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