#
# $Id$
# $HeadURL$
# $Author$
# Created by Patric Karwat, SLSE, 2016-07-19
#

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


SET(replay_gui_SRCS
  replay_management_gui_plugin.h
  replay_management_gui_plugin.cpp
  replay_dialog.h
  replay_dialog.cpp
  replay_dialog_model.h
  replay_dialog_model.cpp

  CustomView/srm_replay.h
  CustomView/srm_replay.cpp
)

NGL_WRAP_UI(replay_gui_SRCS
  replay_dialog.ui
  CustomView/srm_replay.ui
)

IF(BUILD_RTI)
NGL_ADD_LIBRARY(WS SrmReplayManagementGuiPlugin MODULE ${replay_gui_SRCS})
if(QT6_GUI_AVAILABLE)
  NGL_TARGET_LINK_LIBRARIES(SrmReplayManagementGuiPlugin
    NGLLogger
    LtsPrinting
    SrmGuiPluginInterface
    SrmDataPluginInterface
    FltAesGuiPluginInterface
    AvmShared
    ddscore
    svcCoreClient
    ${Qt6_Widgets}
    LtsWidgets
    LtsSession
    LtsSessionData
    LtsDataView
    LtsUtilsGuiDds
    LtsAppManager # for windows tablet replay hack
    LtsUtilsCore
  )
endif()
NGL_INSTALL_TARGET(SrmReplayManagementGuiPlugin)
ENDIF(BUILD_RTI)


