#
# $Id$
# $HeadURL$
# $Author$
# Created by Astrid Mueller, SLSE, 2016-02-29
#

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


SET(smo_system_monitor_gui_SRCS
  smo_system_monitor_gui_plugin.cpp
  smo_system_monitor_gui_plugin.h
  smo_system_monitor_dialog.cpp
  smo_system_monitor_dialog.h
)

NGL_WRAP_UI(smo_system_monitor_gui_SRCS
  smo_system_monitor_dialog.ui
)

NGL_ADD_LIBRARY(WS SmoSystemMonitorGuiPlugin MODULE ${smo_system_monitor_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(SmoSystemMonitorGuiPlugin
    LtsSession
    LtsUtilsSettings
    Qt6::WebEngineWidgets
    ${Qt6_Widgets}
    SmoCommon
    SmoSystemMonitorGuiPluginInterface
    svcSmoDummy
  )
endif()

NGL_INSTALL_TARGET(SmoSystemMonitorGuiPlugin)


