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

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


SET(pre_edit_gui_SRCS
  pre_edit_gui_plugin.cpp
  pre_edit_gui_plugin.h
  pre_dialog.h
  pre_dialog.cpp
  pre_mobile_dialog.h
  pre_mobile_dialog.cpp
)

NGL_WRAP_UI(pre_edit_gui_SRCS
  pre_dialog.ui
  pre_mobile_dialog.ui
)

NGL_ADD_LIBRARY(WS PreEditGuiPlugin MODULE ${pre_edit_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(PreEditGuiPlugin
    NGLLogger
    LtsSession
    svcAvmCommon
    AvmShared
    svcAsmCommon
    PreDataPluginInterface
    PrePresentationGuiPluginInterface
    PreGuiCommon
    svcPreCommon
    ${Qt6_Widgets}
    Qt6::Network
    LtsWidgets
    LtsDataView
    LtsUtilsGuiDds
    ProjectConfig
    dbAdminCopyExercise
  )
endif()

NGL_INSTALL_TARGET(PreEditGuiPlugin)


