Newer
Older
project( MantidVatesSimpleGuiViewWidgets )
# These are the C++ files to be compiled.
set( INCLUDE_FILES
inc/MantidVatesSimpleGuiViewWidgets/AutoScaleRangeGenerator.h
inc/MantidVatesSimpleGuiViewWidgets/CameraManager.h
Anton Piccardo-Selg
committed
inc/MantidVatesSimpleGuiViewWidgets/BackgroundRgbProvider.h
inc/MantidVatesSimpleGuiViewWidgets/ColorMapEditorPanel.h
inc/MantidVatesSimpleGuiViewWidgets/ColorSelectionWidget.h
inc/MantidVatesSimpleGuiViewWidgets/ColorUpdater.h
inc/MantidVatesSimpleGuiViewWidgets/MdViewerWidget.h
inc/MantidVatesSimpleGuiViewWidgets/MultisliceView.h
inc/MantidVatesSimpleGuiViewWidgets/pqCameraToolbarNonOrthogonalAxes.h
inc/MantidVatesSimpleGuiViewWidgets/pqCameraReactionNonOrthogonalAxes.h
inc/MantidVatesSimpleGuiViewWidgets/VatesParaViewApplication.h
inc/MantidVatesSimpleGuiViewWidgets/RebinAlgorithmDialogProvider.h
inc/MantidVatesSimpleGuiViewWidgets/PeaksTableControllerVsi.h
inc/MantidVatesSimpleGuiViewWidgets/PeaksWidget.h
inc/MantidVatesSimpleGuiViewWidgets/PeaksTabWidget.h
inc/MantidVatesSimpleGuiViewWidgets/RebinnedSourcesManager.h
inc/MantidVatesSimpleGuiViewWidgets/VisibleAxesColor.h
inc/MantidVatesSimpleGuiViewWidgets/StandardView.h
inc/MantidVatesSimpleGuiViewWidgets/SplatterPlotView.h
inc/MantidVatesSimpleGuiViewWidgets/ThreesliceView.h
inc/MantidVatesSimpleGuiViewWidgets/TimeControlWidget.h
inc/MantidVatesSimpleGuiViewWidgets/ViewBase.h
inc/MantidVatesSimpleGuiViewWidgets/WidgetDllOption.h
inc/MantidVatesSimpleGuiViewWidgets/VsiApplyBehaviour.h
src/AutoScaleRangeGenerator.cpp
Anton Piccardo-Selg
committed
src/BackgroundRgbProvider.cpp
src/ColorMapEditorPanel.cpp
src/ColorSelectionWidget.cpp
src/ColorUpdater.cpp
src/MdViewerWidget.cpp
src/MultisliceView.cpp
src/RebinAlgorithmDialogProvider.cpp
src/PeaksTableControllerVsi.cpp
src/PeaksTabWidget.cpp
src/pqCameraToolbarNonOrthogonalAxes.cpp
src/pqCameraReactionNonOrthogonalAxes.cpp
src/RebinnedSourcesManager.cpp
src/VisibleAxesColor.cpp
src/ThreesliceView.cpp
src/TimeControlWidget.cpp
src/VsiApplyBehaviour.cpp
# These are the headers to be preprocessed using
# Qt's moc preprocessor.
qt4_wrap_cpp( MOC_SOURCES
inc/MantidVatesSimpleGuiViewWidgets/ColorSelectionWidget.h
inc/MantidVatesSimpleGuiViewWidgets/ColorMapEditorPanel.h
inc/MantidVatesSimpleGuiViewWidgets/MdViewerWidget.h
inc/MantidVatesSimpleGuiViewWidgets/MultisliceView.h
inc/MantidVatesSimpleGuiViewWidgets/PeaksTableControllerVsi.h
inc/MantidVatesSimpleGuiViewWidgets/PeaksWidget.h
inc/MantidVatesSimpleGuiViewWidgets/PeaksTabWidget.h
inc/MantidVatesSimpleGuiViewWidgets/pqCameraToolbarNonOrthogonalAxes.h
inc/MantidVatesSimpleGuiViewWidgets/pqCameraReactionNonOrthogonalAxes.h
inc/MantidVatesSimpleGuiViewWidgets/RebinnedSourcesManager.h
inc/MantidVatesSimpleGuiViewWidgets/StandardView.h
inc/MantidVatesSimpleGuiViewWidgets/SplatterPlotView.h
inc/MantidVatesSimpleGuiViewWidgets/ThreesliceView.h
inc/MantidVatesSimpleGuiViewWidgets/TimeControlWidget.h
inc/MantidVatesSimpleGuiViewWidgets/VatesParaViewApplication.h
inc/MantidVatesSimpleGuiViewWidgets/ViewBase.h
inc/MantidVatesSimpleGuiViewWidgets/VsiApplyBehaviour.h
)
# These are the ui files to be processed using
# Qt's ui file processor.
qt4_wrap_ui( UI_BUILT_SOURCES
inc/MantidVatesSimpleGuiViewWidgets/ColorSelectionWidget.ui
inc/MantidVatesSimpleGuiViewWidgets/ColorMapEditorPanel.ui
inc/MantidVatesSimpleGuiViewWidgets/MdViewerWidget.ui
inc/MantidVatesSimpleGuiViewWidgets/MultisliceView.ui
inc/MantidVatesSimpleGuiViewWidgets/PeaksWidget.ui
inc/MantidVatesSimpleGuiViewWidgets/PeaksTabWidget.ui
inc/MantidVatesSimpleGuiViewWidgets/pqCameraToolbarNonOrthogonalAxes.ui
inc/MantidVatesSimpleGuiViewWidgets/StandardView.ui
inc/MantidVatesSimpleGuiViewWidgets/SplatterPlotView.ui
inc/MantidVatesSimpleGuiViewWidgets/ThreesliceView.ui
inc/MantidVatesSimpleGuiViewWidgets/TimeControlWidget.ui
)
qt4_add_resources ( RES_FILES ../../../resources/icons/ViewWidgetsIcons.qrc )
# Setup the include locations.
include_directories(
${CMAKE_SOURCE_DIR}/qt/widgets/sliceviewer/inc
${CMAKE_BINARY_DIR}/qt/widgets/sliceviewer
${CMAKE_SOURCE_DIR}/qt/widgets/factory/inc
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/../QtWidgets
${CMAKE_SOURCE_DIR}/MantidPlot/src
set( ALL_FILES
${INCLUDE_FILES}
${SOURCE_FILES}
${MOC_SOURCES}
${UI_BUILT_SOURCES}
${RES_FILES}
)
set( TEST_SUITES
test/suite_MDEventWorkspace
test/suite_MDHistoWorkspace
)
# For Windows
add_definitions( -DIN_MANTID_VATES_SIMPLEGUI_VIEWWIDGETS )
# Add the target for this directory
add_library( VatesSimpleGuiViewWidgets ${ALL_FILES} )
# Set the name of the generated library
set_target_properties( VatesSimpleGuiViewWidgets PROPERTIES OUTPUT_NAME MantidVatesSimpleGuiViewWidgets )
# Add to the 'VatesSimpleGui' group in VS
set_property( TARGET VatesSimpleGuiViewWidgets PROPERTY FOLDER MantidVatesSimpleGui )
include_directories( SYSTEM ${PARAVIEW_INCLUDE_DIRS} ${QWT_INCLUDE_DIR} ${PYTHON_INCLUDE_DIR} )
target_link_libraries( VatesSimpleGuiViewWidgets LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
${vtkjsoncpp_LIBRARIES}
vtkPVServerManagerRendering
vtkRenderingFreeType
${QT_LIBRARIES}
VatesSimpleGuiQtWidgets
MantidQtWidgetsFactoryQt4
${PYTHON_LIBRARIES}
if (OSX_VERSION VERSION_GREATER 10.8)
set_target_properties ( VatesSimpleGuiViewWidgets PROPERTIES INSTALL_RPATH "@loader_path/../Contents/MacOS;@loader_path/../Contents/Libraries")
endif ()
# Create test file projects
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} )
include_directories( inc ../../../../Framework/TestHelpers/inc ../../../../Framework/DataHandling/inc ../../../../Framework/DataObjects/inc)
set ( TESTHELPER_SRCS ../../../../Framework/TestHelpers/src/ComponentCreationHelper.cpp
../../../../Framework/TestHelpers/src/InstrumentCreationHelper.cpp
../../../../Framework/TestHelpers/src/WorkspaceCreationHelper.cpp
../../../../Framework/TestHelpers/src/MDEventsTestHelper.cpp
../../../../Framework/TestHelpers/src/StartFrameworkManager.cpp )
cxxtest_add_test( VatesSimpleGuiViewWidgetsTest ${TEST_FILES} )
target_link_libraries( VatesSimpleGuiViewWidgetsTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
VatesSimpleGuiViewWidgets
${vtkjsoncpp_LIBRARIES}
DataHandling
Kernel
add_dependencies( AllTests VatesSimpleGuiViewWidgetsTest )
# Add to the 'UnitTests' group in VS
set_property ( TARGET VatesSimpleGuiViewWidgetsTest PROPERTY FOLDER "UnitTests" )
if( SQUISH_FOUND )
# Need to set the AUT first
set( SQUISH_AUT MantidPlot )
set( SQUISH_AUT_PATH $<TARGET_FILE_DIR:${SQUISH_AUT}> )
# Need to set environmental variables next
set( SQUISH_ENV_VARS
PV_PLUGIN_PATH=$<TARGET_FILE_DIR:${SQUISH_AUT}>/${PVPLUGINS_DIR}/${PVPLUGINS_DIR}
SCRIPTS_DIR=${CMAKE_CURRENT_SOURCE_DIR}/test/mp_scripts
SQUISH_SCRIPT_DIR=${VSI_GLOBAL_SCRIPTS}:${CMAKE_CURRENT_SOURCE_DIR}/test/common/scripts
squish_add_test_suite( ${TEST_SUITES} )
install( TARGETS VatesSimpleGuiViewWidgets ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PVPLUGINS_DIR} )