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


# Topic Editor Interface
ADD_INTERFACE_LIBRARY(
  TopicEditorInterface
  ${CMAKE_CURRENT_SOURCE_DIR}/topic_editor_interface.h
  ${CMAKE_CURRENT_SOURCE_DIR}/..
  Qt5::Core
)

# Library
SET(topic_editor_base_SRCS
  topic_editor_base.cpp
  topic_editor_base.h
  topic_editor_utils.cpp
  topic_editor_utils.h
  topic_preview_widget.cpp
  topic_preview_widget.h
  topic_previewer.cpp
  topic_previewer.h
)

NGL_WRAP_UI(topic_editor_base_SRCS
  topic_preview_widget.ui
)

NGL_ADD_LIBRARY2(WS TopicEditorBase SHARED ${topic_editor_base_SRCS})

NGL_TARGET_INCLUDE_DIRECTORIES(TopicEditorBase
  PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/../
    ${CMAKE_CURRENT_BINARY_DIR}/../ # auto-export file
)

NGL_TARGET_LINK_LIBRARIES(TopicEditorBase
  LtsScriptTimeline
  Qt5::Widgets
  Qt5::Core
  LtsWidgets
  LtsUtilsCore
)
