From 6e71a5ddcad85d41356a40184177ba3c9635b912 Mon Sep 17 00:00:00 2001 From: Charles Galambos Date: Sat, 6 Jul 2024 13:42:11 +0100 Subject: [PATCH] Use includes found in FindFreenect.cmake in build --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a2702b3..de4d4ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,11 @@ find_package(camera_info_manager REQUIRED) add_library(kinect_ros2_component SHARED src/kinect_ros2_component.cpp) target_compile_definitions(kinect_ros2_component PRIVATE "COMPOSITION_BUILDING_DLL") -ament_target_dependencies(kinect_ros2_component +target_include_directories(kinect_ros2_component + PUBLIC BEFORE + ${Freenect_INCLUDE_DIRS} +) +ament_target_dependencies(kinect_ros2_component rclcpp sensor_msgs std_msgs