From 0b10a7232ced2c5acee3195ef7ae1d858a1fae69 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Tue, 6 Feb 2024 12:57:16 +0100 Subject: [PATCH] build(path_smoother): add include directory to CMake target Signed-off-by: Esteve Fernandez --- planning/path_smoother/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/planning/path_smoother/CMakeLists.txt b/planning/path_smoother/CMakeLists.txt index ff83cc210d69d..a3c6d4c43afc3 100644 --- a/planning/path_smoother/CMakeLists.txt +++ b/planning/path_smoother/CMakeLists.txt @@ -25,9 +25,8 @@ if(BUILD_TESTING) ament_add_ros_isolated_gtest(test_${PROJECT_NAME} test/test_${PROJECT_NAME}_node_interface.cpp ) - target_link_libraries(test_${PROJECT_NAME} - ${PROJECT_NAME} - ) + target_include_directories(test_${PROJECT_NAME} include) + target_link_libraries(test_${PROJECT_NAME} path_smoother) endif() ament_auto_package(