From e0dea91da7ebf11372dd5429bcd831b1a9f1dfaa Mon Sep 17 00:00:00 2001 From: John Chrosniak Date: Mon, 2 Dec 2024 13:55:40 -0500 Subject: [PATCH] fixed install for j2735 and j3224 v2x msgs --- j2735_v2x_msgs/CMakeLists.txt | 5 ++--- j3224_v2x_msgs/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/j2735_v2x_msgs/CMakeLists.txt b/j2735_v2x_msgs/CMakeLists.txt index 58e9791..2fe8b13 100644 --- a/j2735_v2x_msgs/CMakeLists.txt +++ b/j2735_v2x_msgs/CMakeLists.txt @@ -85,10 +85,9 @@ else() # ROS 2 DESTINATION include/${PROJECT_NAME} ) - set(INCLUDE_DESTINATION include/${PROJECT_NAME}) + set(INCLUDE_DESTINATION include/${PROJECT_NAME}/${PROJECT_NAME}) ament_export_dependencies(rosidl_default_runtime) - ament_export_include_directories(include) ament_package() if (BUILD_TESTING) @@ -107,6 +106,6 @@ endif() install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${INCLUDE_DESTINATION} - FILES_MATCHING PATTERN "*.h" + FILES_MATCHING PATTERN "*.hpp" PATTERN ".svn" EXCLUDE ) diff --git a/j3224_v2x_msgs/CMakeLists.txt b/j3224_v2x_msgs/CMakeLists.txt index 878be5e..36f247d 100644 --- a/j3224_v2x_msgs/CMakeLists.txt +++ b/j3224_v2x_msgs/CMakeLists.txt @@ -88,7 +88,7 @@ else() # ROS 2 j2735_v2x_msgs ) - set(INCLUDE_DESTINATION include/${PROJECT_NAME}) + set(INCLUDE_DESTINATION include/${PROJECT_NAME}/${PROJECT_NAME}) ament_export_dependencies(rosidl_default_runtime) ament_package() @@ -97,6 +97,6 @@ endif() install(DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${INCLUDE_DESTINATION} - FILES_MATCHING PATTERN "*.h" + FILES_MATCHING PATTERN "*.hpp" PATTERN ".svn" EXCLUDE )