From b6eec8c047cbf7d9192699903503c4c40fb0dd06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 19 Jan 2024 18:04:08 +0100 Subject: [PATCH] ROS 2: Fixed CMake (#899) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- image_publisher/CMakeLists.txt | 3 ++- tracetools_image_pipeline/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/image_publisher/CMakeLists.txt b/image_publisher/CMakeLists.txt index cb41c815a..30eba2456 100644 --- a/image_publisher/CMakeLists.txt +++ b/image_publisher/CMakeLists.txt @@ -11,13 +11,14 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") endif() find_package(ament_cmake_auto REQUIRED) +find_package(camera_info_manager REQUIRED) ament_auto_find_build_dependencies() find_package(OpenCV REQUIRED COMPONENTS core imgcodecs videoio) message(STATUS "opencv version ${OpenCV_VERSION}") ament_auto_add_library(image_publisher SHARED src/image_publisher.cpp) -target_link_libraries(image_publisher ${OpenCV_LIBRARIES}) +target_link_libraries(image_publisher ${OpenCV_LIBRARIES} camera_info_manager::camera_info_manager) rclcpp_components_register_nodes(image_publisher "${PROJECT_NAME}::ImagePublisher") set(node_plugins "${node_plugins}${PROJECT_NAME}::ImagePublisher;$\n") diff --git a/tracetools_image_pipeline/CMakeLists.txt b/tracetools_image_pipeline/CMakeLists.txt index 627df4547..988ab9110 100644 --- a/tracetools_image_pipeline/CMakeLists.txt +++ b/tracetools_image_pipeline/CMakeLists.txt @@ -30,7 +30,7 @@ if(NOT TRACETOOLS_DISABLED) pkg_check_modules(LTTNG lttng-ust) if(LTTNG_FOUND) set(TRACETOOLS_LTTNG_ENABLED TRUE) - message("LTTng found: tracing enabled") + message(STATUS "LTTng found: tracing enabled") endif() endif() endif()