#
# $Id$
# $HeadURL$
# $Author$
# Created by Jörg Turla, SPDG, 2017-04-24
#

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


SET (PlanEditorGuiPlugin_SRCS
  list_chooser.cpp
  list_chooser.h
  plan_editor_gui_plugin.cpp
  plan_editor_gui_plugin.h
)

SOURCE_GROUP(PlanEditorPlugin FILES ${PlanEditorGuiPlugin_SRCS})

NGL_ADD_LIBRARY(WS PlanEditorGuiPlugin MODULE ${PlanEditorGuiPlugin_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES( PlanEditorGuiPlugin
    LtsSession
    LtsSessionData
    PlanEditorGuiPluginInterface
    planEditor
    svcPedDummy
    situationMap
    situationMapObjects
    GuiPluginInterface
    FlmDataPluginInterface
    OpmDataPluginInterface
    PpmDataPluginInterface
    LtsUtilsGuiDds
    LtsWidgets
    NGLLogger
    ${Qt6_Widgets}
  )
endif()

NGL_INSTALL_TARGET(PlanEditorGuiPlugin)
