diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cf18b805849659b4e505d4d0da165508985a8c51..5c5b30a0051b31e2325f80ba60e38151c1fd6347 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -56,22 +56,15 @@ FOREACH(lib ${plugins}) DYNAMIC_GRAPH_PYTHON_MODULE("sot/dynamics_pinocchio/${PYTHON_LIBRARY_NAME}" ${libname} sot-dynamic-pinocchio-${PYTHON_LIBRARY_NAME}-wrap + 1 + "src/python-module-py.cpp" ) + PKG_CONFIG_USE_DEPENDENCY(sot-dynamic-pinocchio-${PYTHON_LIBRARY_NAME}-wrap pinocchio) ENDIF(BUILD_PYTHON_INTERFACE) + UNSET({libname}) ENDFOREACH(lib) -IF(BUILD_PYTHON_INTERFACE) - DYNAMIC_GRAPH_PYTHON_MODULE("sot/dynamics_pinocchio/dynamic" - "" - dynamic-wrap-python - 1 - "src/python-module-py.cpp" - ) - PKG_CONFIG_USE_DEPENDENCY(dynamic-wrap-python pinocchio) -ENDIF(BUILD_PYTHON_INTERFACE) - - # Main Library ADD_LIBRARY(${LIBRARY_NAME} SHARED sot-dynamic-pinocchio.cpp) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} pinocchio)