Commit 60b34b46 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake] Remove unnecessary install when generating a python package.

parent 71ff956c
Pipeline #6805 passed with stage
in 22 minutes and 36 seconds
...@@ -66,7 +66,9 @@ SEARCH_FOR_BOOST() ...@@ -66,7 +66,9 @@ SEARCH_FOR_BOOST()
ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(unitTesting) ADD_SUBDIRECTORY(unitTesting)
ADD_SUBDIRECTORY(doc) IF (NOT INSTALL_PYTHON_INTERFACE_ONLY)
ADD_SUBDIRECTORY(doc)
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
# ********************************** # **********************************
# Robot_utils_sot_py PYTHON module * # Robot_utils_sot_py PYTHON module *
...@@ -74,10 +76,14 @@ ADD_SUBDIRECTORY(doc) ...@@ -74,10 +76,14 @@ ADD_SUBDIRECTORY(doc)
IF(BUILD_PYTHON_INTERFACE) IF(BUILD_PYTHON_INTERFACE)
PYTHON_ADD_MODULE(robot_utils_sot_py src/tools/robot-utils-py.cpp) PYTHON_ADD_MODULE(robot_utils_sot_py src/tools/robot-utils-py.cpp)
PKG_CONFIG_USE_DEPENDENCY(robot_utils_sot_py dynamic-graph) PKG_CONFIG_USE_DEPENDENCY(robot_utils_sot_py dynamic-graph)
PKG_CONFIG_USE_DEPENDENCY(robot_utils_sot_py pinocchio)
TARGET_LINK_LIBRARIES(robot_utils_sot_py ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${LIBRARY_NAME}) TARGET_LINK_LIBRARIES(robot_utils_sot_py ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${LIBRARY_NAME})
TARGET_LINK_BOOST_PYTHON(robot_utils_sot_py) TARGET_LINK_BOOST_PYTHON(robot_utils_sot_py)
INSTALL(TARGETS robot_utils_sot_py DESTINATION ${PYTHON_INSTALL_DIR}) INSTALL(TARGETS robot_utils_sot_py DESTINATION ${PYTHON_INSTALL_DIR})
ENDIF(BUILD_PYTHON_INTERFACE) ENDIF(BUILD_PYTHON_INTERFACE)
SETUP_PROJECT_FINALIZE() # We do not want the project to be finalized if this is
# to install only the python interface.
IF (NOT INSTALL_PYTHON_INTERFACE_ONLY)
SETUP_PROJECT_FINALIZE()
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
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