# copy of displayPanelSimulator for testing with dotMatrixDisplay # Make ${Qt6_Gui} optional if(QT6_GUI_AVAILABLE AND TARGET Qt6::Gui) set(Qt6_Gui ${Qt6_Gui}) else() set(Qt6_Gui "") endif() # Make ${Qt6_Widgets} optional if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets) set(Qt6_Widgets ${Qt6_Widgets}) else() set(Qt6_Widgets "") endif() set(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/ui) SET(displayPanelSimulator_SRCS cmdlineparser.cpp displayPanelSimulatorMain.cpp displayPanelSimulatorTcpServer.cpp displayPanelSimulatorWidget.cpp nglsettings.cpp debugmessages.cpp ) SET(displayPanelSimulator_HDRS cmdlineparser.h displayPanelSimulatorTcpServer.h displayPanelSimulatorWidget.h nglsettings.h customMapsAndEnum.h debugmessages.h ) SET(displayPanelSimulator_UICS ui/displayPanelSimulatorWidget.ui ui/debugmessages.ui ) NGL_WRAP_UI(displayPanelSimulator_SRCS ${displayPanelSimulator_UICS}) NGL_ADD_EXECUTABLE(WS NO_TRANSLATION displayPanelSimulator ${displayPanelSimulator_SRCS} ${displayPanelSimulator_HDRS} ) NGL_TARGET_INCLUDE_DIRECTORIES(displayPanelSimulator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ ) if(QT6_GUI_AVAILABLE) NGL_TARGET_LINK_LIBRARIES(displayPanelSimulator qledline nglapplication nglwidgets NGLLogger nglsettings Qt6::Core ${Qt6_Gui} ${Qt6_Widgets} Qt6::Network ) endif() CONFIGURE_FILE(rheinmetall.jpg ${CMAKE_BINARY_DIR}/rheinmetall.jpg COPYONLY) NGL_INSTALL_TARGET_DEVEL(displayPanelSimulator)