From 23ced084e0b52f404f5bb0009152beaecbf0f7dd Mon Sep 17 00:00:00 2001 From: Jarek Karwowski Date: Sun, 24 Sep 2023 20:43:02 +0200 Subject: [PATCH] `CMakeLists` - fixed lack of planner config header when running tests relying on `config_ros` library --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e73c1ae0..0907915d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,6 +188,9 @@ set_target_properties(vis PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR add_library(config_ros include/${PROJECT_NAME}/humap_config_ros.h src/humap_config_ros.cpp) target_link_libraries(config_ros config ${catkin_LIBRARIES}) set_target_properties(config_ros PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib) +#### Below helps with the `fatal error: humap_local_planner/HumapPlannerConfig.h: No such file or directory in +#### humap_config_ros.h` when running tests +add_dependencies(config_ros ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) ## Library add_library(humap_local_planner