File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ros2pkg/ros2pkg/resource/ament_cmake Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ add_library(@(project_name)::@(cpp_library_name) ALIAS @(cpp_library_name))
2626target_compile_features (@ (cpp_library_name) PUBLIC c_std_99 cxx_std_17) # Require C99 and C++17
2727target_include_directories (@ (cpp_library_name) PUBLIC
2828 $<BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR}/include>
29- $<INSTALL_INTERFACE :include>)
29+ $<INSTALL_INTERFACE :include/${PROJECT_NAME} >)
3030@ [ if dependencies]@
3131ament_target_dependencies (
3232 @ (cpp_library_name)
@@ -42,7 +42,7 @@ target_compile_definitions(@(cpp_library_name) PRIVATE "@(project_name.upper())_
4242
4343install (
4444 DIRECTORY include/
45- DESTINATION include
45+ DESTINATION include/ ${PROJECT_NAME}
4646)
4747install (
4848 TARGETS @ (cpp_library_name)
@@ -57,7 +57,7 @@ install(
5757add_executable (@ (cpp_node_name) src/ @ (cpp_node_name).cpp )
5858target_include_directories (@ (cpp_node_name) PUBLIC
5959 $<BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR}/include>
60- $<INSTALL_INTERFACE :include>)
60+ $<INSTALL_INTERFACE :include/${PROJECT_NAME} >)
6161@ [ if cpp_library_name]@
6262target_link_libraries (@ (cpp_node_name) @ (cpp_library_name))
6363@ [ else ]@
@@ -90,7 +90,7 @@ endif()
9090@ [if cpp_library_name]@
9191
9292ament_export_include_directories (
93- include
93+ " include/${PROJECT_NAME} "
9494)
9595ament_export_libraries (
9696 @ (cpp_library_name)
You can’t perform that action at this time.
0 commit comments