#
# $Id$
# $HeadURL$
# $Author$
# Created by Astrid Mueller, SGAS, 2017-10-11
#

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


SET(opm_combobox_gui_SRCS
  opm_combobox_gui_plugin.cpp
  opm_combobox_gui_plugin.h
)

NGL_ADD_LIBRARY(WS OpmComboBoxGuiPlugin MODULE ${opm_combobox_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(OpmComboBoxGuiPlugin
    NGLLogger
    OpmGuiComboboxPluginInterface
    OpmDataPluginInterface
    PpmDataPluginInterface
    LtsUtilsGuiDds
    ${Qt6_Widgets}
    LtsWidgets
    LtsSession
    LtsSessionData
  )
endif()

NGL_INSTALL_TARGET(OpmComboBoxGuiPlugin)


