#
# $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(esc_effect_show_gui_SRCS
  esc_effect_show_gui_plugin.cpp
  esc_effect_show_gui_plugin.h
  esc_operating_condition.cpp
  esc_operating_condition.h
  esc_firing_explosion.cpp
  esc_firing_explosion.h
  esc_firing_smoke.cpp
  esc_firing_smoke.h
  esc_order_model.cpp
  esc_order_model.h
  esc_order_list.cpp
  esc_order_list.h
  esc_order_edit.cpp
  esc_order_edit.h
  esc_smoke_state.cpp
  esc_smoke_state.h
  esc_safety_confirmation_widget.h
  esc_safety_confirmation_widget.cpp
)

NGL_WRAP_UI(esc_effect_show_gui_SRCS
  esc_operating_condition.ui
  esc_firing_explosion.ui
  esc_firing_smoke.ui
  esc_order_list.ui
  esc_order_edit.ui
  esc_smoke_state.ui
  esc_safety_confirmation_widget.ui
)

NGL_ADD_LIBRARY(WS EscEffectShowGuiPlugin MODULE ${esc_effect_show_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(EscEffectShowGuiPlugin
    NGLLogger
    ngltools
    LtsPrinting
    LtsSession
    EscGuiPluginInterface
    EscDataPluginInterface
    SituationMapGuiPluginInterface
    TabocDataPluginInterface
    ${Qt6_Widgets}
    LtsWidgets
    LtsDataView
    LtsNotification
    LtsUtilsGuiDds
    LtsCoordTrans
    ltsCoordWidget
  )
endif()

NGL_INSTALL_TARGET(EscEffectShowGuiPlugin)
