From 1889d8fc9c002db96db55db49c221b19cfd9f6d9 Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Thu, 24 Mar 2022 08:14:57 +0100 Subject: [PATCH] Update Signed-off-by: Pablo Garrido --- sensor_msgs/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sensor_msgs/CMakeLists.txt b/sensor_msgs/CMakeLists.txt index 3653b211..6eafb6e7 100644 --- a/sensor_msgs/CMakeLists.txt +++ b/sensor_msgs/CMakeLists.txt @@ -73,6 +73,12 @@ if(TARGET ${cpp_target}) install( TARGETS ${PROJECT_NAME}_library EXPORT export_${PROJECT_NAME} ) + + # Export old-style CMake variables + ament_export_include_directories("include/${PROJECT_NAME}") + + # Export modern CMake targets + ament_export_targets(export_${PROJECT_NAME}) endif() if(BUILD_TESTING) @@ -89,12 +95,6 @@ if(BUILD_TESTING) target_link_libraries(test_sensor_msgs "${cpp_typesupport_target}") endif() -# Export old-style CMake variables -ament_export_include_directories("include/${PROJECT_NAME}") - -# Export modern CMake targets -ament_export_targets(export_${PROJECT_NAME}) - ament_export_dependencies(rosidl_default_runtime) ament_package()