mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
Fix logic when building without rviz.
This commit is contained in:
+8
-6
@@ -79,9 +79,9 @@ IF(RTABMAP_GUI OR rviz_default_plugins_FOUND)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF(RTABMAP_GUI OR rviz_default_plugins_FOUND)
|
ENDIF(RTABMAP_GUI OR rviz_default_plugins_FOUND)
|
||||||
|
|
||||||
find_package(rviz_common REQUIRED)
|
find_package(rviz_common)
|
||||||
find_package(rviz_rendering REQUIRED)
|
find_package(rviz_rendering)
|
||||||
find_package(rviz_default_plugins REQUIRED)
|
find_package(rviz_default_plugins)
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
@@ -450,9 +450,11 @@ foreach(typesupport_impl ${typesupport_impls})
|
|||||||
rosidl_target_interfaces(rtabmap
|
rosidl_target_interfaces(rtabmap
|
||||||
${PROJECT_NAME}_msgs ${typesupport_impl}
|
${PROJECT_NAME}_msgs ${typesupport_impl}
|
||||||
)
|
)
|
||||||
rosidl_target_interfaces(rtabmapviz
|
IF(RTABMAP_GUI)
|
||||||
${PROJECT_NAME}_msgs ${typesupport_impl}
|
rosidl_target_interfaces(rtabmapviz
|
||||||
)
|
${PROJECT_NAME}_msgs ${typesupport_impl}
|
||||||
|
)
|
||||||
|
ENDIF()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# If rviz is found, add plugins
|
# If rviz is found, add plugins
|
||||||
|
|||||||
Reference in New Issue
Block a user