#
# $Id$
# $HeadURL$
# $Author$
# Created by Mike Wille, SLSE, 2016-05-05
#

# Make ${Qt6_Widgets} optional
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Widgets)
  set(Qt6_Widgets ${Qt6_Widgets})
else()
  set(Qt6_Widgets "")
endif()


SET(participant_templates_gui_SRCS
  participant_templates_gui_plugin.h
  participant_templates_gui_plugin.cpp
  participant_template_chooser_model.cpp
  participant_template_chooser_model.h
  participant_template_chooser.cpp
  participant_template_chooser.h
  participant_template_chooser_frameless.cpp
  participant_template_chooser_frameless.h
  participant_template_edit.cpp
  participant_template_edit.h
  template_unit_namer.cpp
  template_unit_namer.h
  CustomView/template.cpp
  CustomView/template.h
  )

NGL_WRAP_UI(participant_templates_gui_SRCS
  participant_template_chooser.ui
  participant_template_chooser_frameless.ui
  participant_template_edit.ui
  template_unit_namer.ui
  CustomView/template.ui
  )

NGL_ADD_LIBRARY(WS PpmParticipantTemplatesGuiPlugin MODULE ${participant_templates_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(PpmParticipantTemplatesGuiPlugin
    AsbDataPluginInterface
    advancedSymbology
    advancedSymbologyGui
    AsbHelper
    nglwidgets
    NGLLogger
    LtsPrinting
    LtsDataView
    LtsAppManager
    LtsPluginManager
    LtsSessionData
    PpmGuiTemplatesPluginInterface
    PpmGuiComboboxPluginInterface
    PpmDataPluginInterface
    PpmCommon
    ${Qt6_Widgets}
    LtsWidgets
    LtsSession
    LtsUtilsGuiDds
  )
endif()
NGL_INSTALL_TARGET(PpmParticipantTemplatesGuiPlugin)
