Commit 4c1f05e1 authored by JasonChmn's avatar JasonChmn Committed by Pierre Fernbach
Browse files

Problem binding in python functions using boost::serialization => test python fail

parent d5170eeb
......@@ -8,6 +8,9 @@ ADD_LIBRARY(${PY_NAME} SHARED ${${PY_NAME}_BINDINGS_SOURCES})
SET_TARGET_PROPERTIES(${PY_NAME} PROPERTIES PREFIX "")
PKG_CONFIG_USE_DEPENDENCY(${PY_NAME} eigenpy)
TARGET_LINK_LIBRARIES(${PY_NAME} ${Boost_SERIALIZATION_LIBRARIES})
TARGET_LINK_BOOST_PYTHON(${PY_NAME})
IF(APPLE)
# We need to change the extension for python bindings
SET_TARGET_PROPERTIES(${PY_NAME} PROPERTIES SUFFIX ".so")
......
......@@ -351,7 +351,7 @@ BOOST_PYTHON_MODULE(curves)
.def("max", &polynomial_t::max)
.def("__call__", &polynomial_t::operator())
.def("derivate", &polynomial_t::derivate)
//.def(SerializableVisitor<polynomial_t>())
.def("serialize", &polynomial_t::saveAsText)
;
/** END polynomial function**/
......
Supports Markdown
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