

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


SET (nme_info_gui_SRCS
  nme_notification_gui_plugin.h
  nme_notification_gui_plugin.cpp
  nme_battery_info_dialog.h
  nme_battery_info_dialog.cpp
  nme_shutdown_dialog.h
  nme_shutdown_dialog.cpp
  )

QT5_WRAP_UI(nme_info_gui_SRCS
  nme_battery_info_dialog.ui
  nme_shutdown_dialog.ui
  )

NGL_ADD_LIBRARY(WS NmeNotificationGuiPlugin MODULE ${nme_info_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(NmeNotificationGuiPlugin
    ${Qt6_Widgets}
    LtsSession
    LtsWidgets
    LtsNotification
    LtsUtilsGuiDds
    NGLLogger
    NmeGuiNotificationPluginInterface
    svcTabCommon
    )
endif()

NGL_INSTALL_TARGET(NmeNotificationGuiPlugin)
