#
# $Id$
# $HeadURL$
# $Author$
# Created by Filip Biedniak, SLSE, 2020-06-15
#

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


SET(scr_gui_SRCS
  scr_gui_plugin.cpp
  scr_gui_plugin.h

  screen_recording_dialog.cpp
  screen_recording_dialog.h

  screen_recording_worker.cpp
  screen_recording_worker.h
)

NGL_WRAP_UI(scr_gui_SRCS
  screen_recording_dialog.ui
)

NGL_ADD_LIBRARY(WS ScrScreenRecordingGuiPlugin MODULE ${scr_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(ScrScreenRecordingGuiPlugin
    NGLLogger
    LtsSession
    GuiPluginInterface
    situationMap
    SituationMapGuiPluginInterface
    ${Qt6_Widgets}
    LtsWidgets
    svcScrDummy
  )
endif()

NGL_INSTALL_TARGET(ScrScreenRecordingGuiPlugin)
