Skip to content

Commit

Permalink
disabling gui
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Aug 19, 2023
1 parent 95bf5c1 commit 29da7f3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion nimbro_net_monitor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
32 changes: 18 additions & 14 deletions nimbro_service_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion nimbro_topic_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ target_link_libraries(action_proxy
)

# GUI
add_subdirectory(src/gui)
# add_subdirectory(src/gui)

# Tests
if(catch_ros_FOUND)
Expand Down

0 comments on commit 29da7f3

Please sign in to comment.