# copy of displayPanelSimulator for testing with dotMatrixDisplay


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}
)

# .ui files live in the ui/ subdirectory; AUTOUIC only searches the source
# dir by default, so tell it where to find them
set_target_properties(displayPanelSimulator PROPERTIES AUTOUIC_SEARCH_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/ui")

NGL_TARGET_INCLUDE_DIRECTORIES(displayPanelSimulator
  PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/../
)

NGL_TARGET_LINK_LIBRARIES(displayPanelSimulator
  qledline
  nglapplication
  nglwidgets
  NGLLogger
  nglsettings
  Qt6::Core
  Qt6::Gui
  Qt6::Widgets
  Qt6::Network
)
CONFIGURE_FILE(rheinmetall.jpg ${CMAKE_BINARY_DIR}/rheinmetall.jpg COPYONLY)

NGL_INSTALL_TARGET_DEVEL(displayPanelSimulator)
