Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use CMake for EXAMPLE_ROBOT_DATA_MODEL_DIR #170

Merged
merged 1 commit into from
May 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ if(NOT INSTALL_PYTHON_INTERFACE_ONLY)
add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME}
INTERFACE $<INSTALL_INTERFACE:include>)
target_compile_definitions(
${PROJECT_NAME}
INTERFACE
EXAMPLE_ROBOT_DATA_MODEL_DIR="$<INSTALL_PREFIX>/share/${PROJECT_NAME}/robots"
)
install(
TARGETS ${PROJECT_NAME}
EXPORT ${TARGETS_EXPORT_NAME}
Expand Down
1 change: 0 additions & 1 deletion include/example-robot-data/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
configure_file(path.hpp.in path.hpp)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/path.hpp
DESTINATION include/${CUSTOM_HEADER_DIR})
9 changes: 9 additions & 0 deletions include/example-robot-data/path.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef EXAMPLE_ROBOT_DATA_PATH_HPP
#define EXAMPLE_ROBOT_DATA_PATH_HPP

#include <example-robot-data/warning.hh>

#pragma message EXAMPLE_ROBOT_DATA_WARN( \
"Header `example-robot-data/path.hpp` is deprecated and useless!")

#endif
6 changes: 0 additions & 6 deletions include/example-robot-data/path.hpp.in

This file was deleted.