#
# $Id$
# $HeadURL$
# $Author$
#
# Created by Mike Wille, SLSE, 2017-04-21
#

#
# Common
#
SET(pre_script_common_SRCS
  script_transport_ifc.h
  topic_designer.h
  topic_designer.cpp

  ScriptChooser/script_chooser.h
  ScriptChooser/script_chooser.cpp

  TakeHomePackageGenerator/db_reader.cpp
  TakeHomePackageGenerator/db_reader.h
  TakeHomePackageGenerator/dvd_writer.cpp
  TakeHomePackageGenerator/dvd_writer.h
  TakeHomePackageGenerator/export.cpp
  TakeHomePackageGenerator/export.h
  TakeHomePackageGenerator/export_process.cpp
  TakeHomePackageGenerator/export_process.h
  TakeHomePackageGenerator/export_step.cpp
  TakeHomePackageGenerator/export_step.h
  TakeHomePackageGenerator/situation_exporter.cpp
  TakeHomePackageGenerator/situation_exporter.h
)

QT5_WRAP_UI(pre_script_common_SRCS
  ScriptChooser/script_chooser.ui
)
INSTALL_SHARED_FILES(pre_script_common_SRCS
  FILES thp/index.html
        thp/index_de_DE.html
        thp/angular.min.js
        thp/angular.min.js.license
        thp/logo.svg
        thp/main.js
        thp/style.css
        thp/autorun.inf
  DESTINATION "thp"
  WS
)

INSTALL_SHARED_FILES(pre_script_common_SRCS
  FILES thp/standalone/index.html
        thp/standalone/index_de_DE.html
        thp/angular.min.js
        thp/angular.min.js.license
  DESTINATION "thp_standalone"
  WS
)

NGL_ADD_LIBRARY2(WS PreGuiScriptCommon SHARED ${pre_script_common_SRCS})
NGL_TARGET_LINK_LIBRARIES(PreGuiScriptCommon
  Qt5::Widgets
  Qt5::Network
  PreGuiCommon # topic assignments
  NGLLogger
  LtsWidgets
  LtsSession
  LtsDataView
  PreScriptTimelineGuiPluginInterface

  # TakeHomePackageGenerator
  AsmDataPluginInterface
  ExmDataPluginInterface
  LtsPluginLoader
  nglcompression
  ngldb
  nglsettings
  ngltools

  svcCoreClient
  TopicEditorBase
  ExportBdvTopicSetting
)

