set(monitoringgui_MOC_SRCS
  MonitoringGuiManager.h
  MonitoringDialog.h
  MonitoringDriver.h
)

set(monitoringgui_UIS
  MonitoringDialog.ui
)

qt_wrap_ui(monitoringgui_UIS_H ${monitoringgui_UIS})
# qt4_wrap_cpp(monitoringgui_MOCS ${monitoringgui_MOC_SRCS}) Not needed if AUTOMOC is set to ON (CMake therefore handle moc automatically)

qt_add_resources(monitoringgui_QRC MonitoringGuiIcons.qrc)

set(monitoringgui_HEADERS_TO_EXPORT
    MonitoringGuiManager.h
    MMLMonitoringGUIAPI.h
    MonitoringDialog.h
    MonitoringDriver.h
)
set(monitoringgui_HEADERS
  ${monitoringgui_HEADERS_TO_EXPORT}
  ${monitoringgui_UIS_H}
  ${monitoringgui_QRC}
)

set(monitoringgui_SRCS
  MonitoringGuiManager.cpp
  MonitoringDialog.cpp
  MonitoringDriver.cpp
  ${monitoringgui_HEADERS}
  ${monitoringgui_MOC_UI}
)

add_definitions(-DCOMPILE_MML_MONIGORING_GUI_TOOL)
add_definitions(-DMML_GENERATE_GUI)

# add lib as a camitk tool
camitk_library( STATIC
                NEEDS_XSD
                SOURCES ${monitoringgui_SRCS}
                NEEDS_CEP_LIBRARIES monitoring mmlschema pml pmlschema lml lmlschema
                HEADERS_TO_INSTALL ${monitoringgui_HEADERS_TO_EXPORT}
                INCLUDE_DIRECTORIES ${MML_INCLUDE_DIRECTORIES}
                NEEDS_QT
                CEP_NAME CEP_MODELING
                DESCRIPTION "Allows one to monitor a biomechanical deformation using a GUI."
)
