Commit 1ce872a1 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] add boost::python & use standard __init__.py

parent b8296d07
......@@ -26,6 +26,7 @@ SET(DOXYGEN_USE_MATHJAX YES)
# JRL-cmakemodule setup
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
INCLUDE(cmake/python.cmake)
# Project definition
......@@ -35,9 +36,13 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
# Project dependencies
ADD_PROJECT_DEPENDENCY(sot-core REQUIRED PKG_CONFIG_REQUIRES sot-core)
ADD_PROJECT_DEPENDENCY(dynamic-graph-python REQUIRED PKG_CONFIG_REQUIRES dynamic-graph-python)
IF(BUILD_TESTING)
FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework)
ENDIF(BUILD_TESTING)
IF(BUILD_PYTHON_INTERFACE)
FINDPYTHON()
SEARCH_FOR_BOOST_PYTHON(REQUIRED)
STRING(REGEX REPLACE "-" "_" PYTHON_DIR ${CUSTOM_HEADER_DIR})
ADD_PROJECT_DEPENDENCY(dynamic-graph-python REQUIRED
PKG_CONFIG_REQUIRES dynamic-graph-python)
......
Subproject commit ac0a2fa40fb7103bbf4bee86a682dee95a6b4d04
Subproject commit 9dcde03a880cccc86531019a6845708f5c54c35d
......@@ -5,12 +5,10 @@
IF(BUILD_PYTHON_INTERFACE)
DYNAMIC_GRAPH_PYTHON_MODULE(${PYTHON_DIR} ${PROJECT_NAME} wrap
DONT_INSTALL_INIT_PY
MODULE_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/python.hh
MODULE_HEADER "${CMAKE_CURRENT_SOURCE_DIR}/python.hh"
)
SET(${PROJECT_NAME}_PYTHON
__init__.py
se3.py
quaternion.py
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment