#
# $Id$
# $HeadURL$
# $Author$
# Created by Mike Wille, SLSE, 2016-05-05
#

SET(charge_table_gui_SRCS
  pdm_charge_table_foreign_gui_interface_impl.cpp
  pdm_charge_table_foreign_gui_interface_impl.h
  charge_table.cpp
  charge_table.h
  charge_table.ui
  charge_table_model.cpp
  charge_table_model.h
  charge_edit_dialog.cpp
  charge_edit_dialog.h
)

NGL_WRAP_UI(charge_table_gui_SRCS 
  charge_table.ui
  charge_edit_dialog.ui
)

NGL_ADD_LIBRARY(WS PdmChargeTableGui STATIC ${charge_table_gui_SRCS})
NGL_TARGET_INCLUDE_DIRECTORIES(PdmChargeTableGui
  PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/../../..
)
NGL_TARGET_LINK_LIBRARIES(PdmChargeTableGui
  PRIVATE
    Qt5::Widgets
    nglwidgets
    PdmDataPluginInterface
    FlmDataPluginInterface
    LtsUtilsSettings
    LtsUtilsGuiDds
    LtsPrinting
    LtsDataView
    LtsSession
    LtsSessionData
    LtsWidgets
    NGLLogger
  PUBLIC
    PdmGuiPluginInterface
    Qt5::Core
    svcPdmClient
)

SET(pdm_charge_table_gui_plugin_SRCS
  pdm_charge_table_gui_plugin.cpp
  pdm_charge_table_gui_plugin.h
)
NGL_ADD_LIBRARY(WS PdmChargeTableGuiPlugin MODULE ${pdm_charge_table_gui_plugin_SRCS})

NGL_TARGET_LINK_LIBRARIES(PdmChargeTableGuiPlugin
  LtsSession
  NGLLogger
  PdmChargeTableGui
  PdmDataPluginInterface
)

NGL_INSTALL_TARGET(PdmChargeTableGuiPlugin)
