From afe43b140eacd6a6688ba45c3e6b3ccf930caa35 Mon Sep 17 00:00:00 2001 From: ipa-rar Date: Wed, 3 Aug 2022 15:51:32 +0200 Subject: [PATCH] updated CMakeLists.txt to generate custom interfaces with ros-humble --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 244333b..f9ed90c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,10 @@ rosidl_generate_interfaces(${PROJECT_NAME} # Build and install targets add_executable(${PROJECT_NAME}_node src/fake_ar_publisher.cpp) ament_target_dependencies(${PROJECT_NAME}_node rclcpp geometry_msgs visualization_msgs) -rosidl_target_interfaces(${PROJECT_NAME}_node ${PROJECT_NAME} "rosidl_typesupport_cpp") + +rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp") +target_link_libraries(${PROJECT_NAME}_node "${cpp_typesupport_target}") + install(TARGETS ${PROJECT_NAME}_node RUNTIME DESTINATION lib/${PROJECT_NAME} @@ -55,3 +58,4 @@ endif() # Ament package settings ament_export_dependencies(rclcpp geometry_msgs visualization_msgs) ament_package() +