From fdd13c31f9574e72ed27a79321dfa00676176239 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Sat, 15 Jun 2024 14:22:56 -0700 Subject: [PATCH] Make rtabmap_viz fails during cmake when rtabmap is not built with gui component --- rtabmap_viz/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtabmap_viz/CMakeLists.txt b/rtabmap_viz/CMakeLists.txt index 013895db0..84ba092c3 100644 --- a/rtabmap_viz/CMakeLists.txt +++ b/rtabmap_viz/CMakeLists.txt @@ -16,6 +16,8 @@ find_package(rtabmap_msgs REQUIRED) find_package(rtabmap_sync REQUIRED) find_package(tf2 REQUIRED) +find_package(RTABMap COMPONENTS gui REQUIRED) + include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/include )