Commit 7a17943c authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] data installation is also optional

to ease robotpkg packaging
parent b950df50
......@@ -26,6 +26,7 @@ ENDIF()
SETUP_PROJECT()
OPTION (INSTALL_DATA "Install the data" ON)
OPTION (BUILD_PYTHON_INTERFACE "Build the python unit tests and helpers" ON)
IF(BUILD_PYTHON_INTERFACE)
......@@ -36,9 +37,11 @@ IF(BUILD_PYTHON_INTERFACE)
ADD_SUBDIRECTORY(unittest)
ENDIF(BUILD_PYTHON_INTERFACE)
INSTALL(DIRECTORY hyq_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY icub_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY talos_data DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY tiago_description DESTINATION share/${PROJECT_NAME})
IF(INSTALL_DATA)
INSTALL(DIRECTORY hyq_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY icub_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY talos_data DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY tiago_description DESTINATION share/${PROJECT_NAME})
ENDIF(INSTALL_DATA)
SETUP_PROJECT_FINALIZE()
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