From 29da7f37d2600de3cc67531215f0619c2137103b Mon Sep 17 00:00:00 2001 From: Tomas Baca Date: Sat, 19 Aug 2023 08:48:36 +0200 Subject: [PATCH] disabling gui --- nimbro_net_monitor/CMakeLists.txt | 2 +- nimbro_service_transport/CMakeLists.txt | 32 ++++++++++++++----------- nimbro_topic_transport/CMakeLists.txt | 2 +- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/nimbro_net_monitor/CMakeLists.txt b/nimbro_net_monitor/CMakeLists.txt index 84f585c..0a2fe74 100644 --- a/nimbro_net_monitor/CMakeLists.txt +++ b/nimbro_net_monitor/CMakeLists.txt @@ -64,7 +64,7 @@ if(MNL_FOUND) endif() # GUI -add_subdirectory(src/gui) +# add_subdirectory(src/gui) install(TARGETS net_monitor RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} diff --git a/nimbro_service_transport/CMakeLists.txt b/nimbro_service_transport/CMakeLists.txt index 2ccc888..e88fb1f 100644 --- a/nimbro_service_transport/CMakeLists.txt +++ b/nimbro_service_transport/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.10) project(nimbro_service_transport) +set(COMPILE_GUI FALSE) + find_package(catkin REQUIRED COMPONENTS roscpp roslib @@ -69,24 +71,26 @@ add_dependencies(udp_client ) # GUI -find_package(Qt5Widgets REQUIRED) +if(COMPILE_GUI) + find_package(Qt5Widgets REQUIRED) -qt5_wrap_cpp(MOC_SRCS - src/gui/service_widget.h -) + qt5_wrap_cpp(MOC_SRCS + src/gui/service_widget.h + ) -add_library(service_widget - ${MOC_SRCS} - src/gui/service_widget.cpp -) + add_library(service_widget + ${MOC_SRCS} + src/gui/service_widget.cpp + ) -add_dependencies(service_widget - ${PROJECT_NAME}_generate_messages_cpp -) + add_dependencies(service_widget + ${PROJECT_NAME}_generate_messages_cpp + ) -target_link_libraries(service_widget - Qt5::Widgets -) + target_link_libraries(service_widget + Qt5::Widgets + ) +endif() # Tests if(catch_ros_FOUND) diff --git a/nimbro_topic_transport/CMakeLists.txt b/nimbro_topic_transport/CMakeLists.txt index a8809b6..3851848 100644 --- a/nimbro_topic_transport/CMakeLists.txt +++ b/nimbro_topic_transport/CMakeLists.txt @@ -140,7 +140,7 @@ target_link_libraries(action_proxy ) # GUI -add_subdirectory(src/gui) +# add_subdirectory(src/gui) # Tests if(catch_ros_FOUND)