Commit 546d192b authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

add path.hpp.in

to ease data finding in C++
ref https://github.com/stack-of-tasks/pinocchio/issues/965
parent b2bab07e
......@@ -41,6 +41,7 @@ IF(BUILD_PYTHON_INTERFACE)
ENDIF(BUILD_PYTHON_INTERFACE)
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
ADD_SUBDIRECTORY(include/${CUSTOM_HEADER_DIR})
INSTALL(DIRECTORY robots/anymal_b_simple_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/hyq_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/solo_description DESTINATION share/${PROJECT_NAME}/robots)
......
CONFIGURE_FILE(path.hpp.in path.hpp)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/path.hpp DESTINATION include/${CUSTOM_HEADER_DIR})
#ifndef EXAMPLE_ROBOT_DATA_PATH_HPP
#define EXAMPLE_ROBOT_DATA_PATH_HPP
#define EXAMPLE_ROBOT_DATA_MODEL_DIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/robots"
#endif
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