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

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


SET(participant_org_chart_gui_SRCS
  participant_org_chart_gui_plugin.cpp
  participant_org_chart_gui_plugin.h
  participant_org_chart.cpp
  participant_org_chart.h
  participant_org_chart_helper.cpp
  participant_org_chart_helper.h
  combat_power.cpp
  combat_power.h
  org_chart_main.cpp
  org_chart_main.h
  org_chart_main_helper.cpp
  org_chart_main_helper.h
)
NGL_WRAP_UI(participant_org_chart_gui_SRCS
    participant_org_chart.ui
    combat_power.ui
    org_chart_main.ui
    )

NGL_ADD_LIBRARY2(WS PpmOrgChartGuiPlugin MODULE ${participant_org_chart_gui_SRCS} )
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(PpmOrgChartGuiPlugin
    PRIVATE
      AsbDataPluginInterface
      ${Qt6_Widgets}
      Qt6::WebEngineCore
      Qt6::WebEngineWidgets
      # Qt6 Migration: Qt5::WebEngineWidgets transitively linked Qt5::WebChannel;
      # Qt6 dropped that dependency, so link the module explicitly.
      Qt6::WebChannel
      LtsSession
      NGLLogger
    PUBLIC
      Qt6::Core
      nglwidgets
      svcPpmCommon
      PpmCommon
      PpmGuiOrgChartPluginInterface
      AsbDataPluginInterface
      advancedSymbology               ## BulkRenderer
      LtsUtilsGuiDds
      svcCoreClient # Core Ftc - for TLH
  )
endif()
