From c0452f777985c0183504c92f9b368c59109fd6c6 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sat, 21 Jun 2025 12:00:24 +0200 Subject: [PATCH] Actully search for octomap in CMakeLists.txt --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c16ebcc..108ee31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,11 @@ ament_auto_find_build_dependencies() find_package(Qt5 REQUIRED COMPONENTS Widgets) set(CMAKE_AUTOMOC ON) +# liboctomap-dev is listed in the package.xml, but the CMake package name is octomap, +# so we need to find it explicitly as ament_auto_find_build_dependencies just tries to find +# it as liboctomap-dev (without finding anything) +find_package(octomap REQUIRED) + set(octomap_rviz_plugins_headers_to_moc include/octomap_rviz_plugins/occupancy_grid_display.hpp include/octomap_rviz_plugins/occupancy_map_display.hpp