From 9dbb5ca21aed10ae0a192dcab98df876413aabb3 Mon Sep 17 00:00:00 2001 From: Aaditya Ravindran Date: Tue, 11 Jul 2023 12:24:44 -0400 Subject: [PATCH] Install nav2_behavior_tree utils outside of BUILD_TESTING --- nav2_behavior_tree/CMakeLists.txt | 4 ++++ nav2_behavior_tree/test/CMakeLists.txt | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nav2_behavior_tree/CMakeLists.txt b/nav2_behavior_tree/CMakeLists.txt index 944ca7bce47..f82e70dc8bf 100644 --- a/nav2_behavior_tree/CMakeLists.txt +++ b/nav2_behavior_tree/CMakeLists.txt @@ -223,6 +223,10 @@ install(DIRECTORY include/ DESTINATION include/ ) +install(DIRECTORY test/utils/ + DESTINATION include/utils/ +) + install(FILES nav2_tree_nodes.xml DESTINATION share/${PROJECT_NAME}) if(BUILD_TESTING) diff --git a/nav2_behavior_tree/test/CMakeLists.txt b/nav2_behavior_tree/test/CMakeLists.txt index 42b00f50d66..43696b1614e 100644 --- a/nav2_behavior_tree/test/CMakeLists.txt +++ b/nav2_behavior_tree/test/CMakeLists.txt @@ -7,8 +7,3 @@ add_subdirectory(plugins/condition) add_subdirectory(plugins/decorator) add_subdirectory(plugins/control) add_subdirectory(plugins/action) - -install(DIRECTORY utils - DESTINATION include/) - -ament_export_include_directories(utils)