#
# $Id$
# $HeadURL$
# $Author$
# Created by Patric Karwat, SLSE, 2016-10-05
#

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


SET(ppm_operational_planing_gui_SRCS
  ppm_party_edit_gui_plugin.cpp
  ppm_party_edit_gui_plugin.h
  ppm_party_view.cpp
  ppm_party_view.h
  ppm_party_model.cpp
  ppm_party_model.h
  participant_show.cpp
  participant_show.h
  ppm_planning_model.cpp
  ppm_planning_model.h
)

NGL_WRAP_UI(ppm_operational_planing_gui_SRCS
  ppm_party_view.ui
  participant_show.ui
)

NGL_ADD_LIBRARY(WS PpmOperationalPlaningGuiPlugin MODULE ${ppm_operational_planing_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(PpmOperationalPlaningGuiPlugin
    AsbDataPluginInterface
    NGLLogger
    LtsPrinting
    LtsSession
    PpmGuiPartyPluginInterface
    PpmDataPluginInterface
    PpmGuiComboboxPluginInterface
    ${Qt6_Widgets}
    LtsWidgets
    LtsDataView
    LtsUtilsGuiDds
  
  
    AsbDataPluginInterface
    AsbHelper
    nglwidgets
    NGLLogger
    LtsPrinting
    PpmCommon
    PpmGuiParticipantsPluginInterface
    PpmGuiComboboxPluginInterface
    PpmGuiTemplatesPluginInterface
    PpmDataPluginInterface
    ${Qt6_Widgets}
    LtsWidgets
    LtsSession
    LtsUtilsGuiDds
  )
endif()

NGL_INSTALL_TARGET(PpmOperationalPlaningGuiPlugin)
