Commit 91a650dc authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Remove the rest of ENABLE_MANTIDPLOT from cmake

parent 3ecb1dff
......@@ -32,6 +32,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
option(ENABLE_MANTIDPLOT "Enable Qt4-based gui & components" OFF)
option(ENABLE_WORKBENCH "Enable Qt5-based gui & components" ON)
if(ENABLE_MANTIDPLOT)
message( FATAL_ERROR "MantidPlot has been removed from the source code")
endif()
set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR}" "Mantid" "ALL" "/")
......@@ -79,10 +82,6 @@ include(Span)
# VATES flag. Requires ParaView
option(MAKE_VATES "Switch for compiling the Vates project" Off)
if(ENABLE_MANTIDPLOT OR MAKE_VATES)
message( STATUS "ParaView is no longer used")
endif()
if( MSVC )
include ( MSVCSetup )
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
......@@ -111,36 +110,6 @@ if(COVERALLS)
coveralls_turn_on_coverage()
endif()
# Qt/Qwt/PyQt/sip
if(ENABLE_MANTIDPLOT)
set(QT_USE_IMPORTED_TARGETS ON)
find_package(Qt4
COMPONENTS QtCore
QtDesigner
QtGui
QtOpenGL
QtScript
QtSvg
QtXml
REQUIRED)
find_package(QScintillaQt4 REQUIRED)
find_package(Qwt5 REQUIRED)
if(QWT5_VERSION VERSION_LESS 5.0
OR QWT5_VERSION VERSION_EQUAL 6.0
OR QWT5_VERSION VERSION_GREATER 6.0)
message(FATAL_ERROR "Qwt version 5 is required, found: ${QWT5_VERSION}")
endif()
if(UNIX_DIST MATCHES "RedHatEnterprise" AND UNIX_RELEASE MATCHES "7\..*")
set(USE_PRIVATE_SIPPYQT4 ON)
include(ExternalSipPyQt4)
else()
find_package(PyQt4 REQUIRED)
find_package(SIP REQUIRED)
endif()
separate_arguments(PYQT4_SIP_FLAGS)
endif()
if(ENABLE_WORKBENCH)
find_package(Qt5
COMPONENTS Core
......@@ -197,7 +166,7 @@ endif()
add_custom_target(AllTests)
add_dependencies(AllTests FrameworkTests)
if(ENABLE_MANTIDPLOT OR ENABLE_WORKBENCH)
if(ENABLE_WORKBENCH)
add_custom_target(GUITests)
add_dependencies(check GUITests)
# Collect all tests together
......@@ -205,10 +174,6 @@ if(ENABLE_MANTIDPLOT OR ENABLE_WORKBENCH)
add_subdirectory(qt)
endif()
if(ENABLE_MANTIDPLOT)
message( FATAL_ERROR "MantidPlot has been removed from the source code")
endif()
add_subdirectory(scripts)
# Docs requirements
......@@ -257,11 +222,6 @@ endif()
# Installation settings
if(ENABLE_MANTIDPLOT)
# N.B. INBUNDLE variable is empty except on Mac (set in DarwinSetup.cmake)
install(DIRECTORY installers/colormaps/ DESTINATION ${INBUNDLE}colormaps)
endif()
# Install the files (.desktop and icon) to create a menu items
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
function(uppercase_first_letter output_var input)
......@@ -301,17 +261,6 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
if(CPACK_PACKAGE_SUFFIX)
uppercase_first_letter(_app_name_suffix ${CPACK_PACKAGE_SUFFIX})
endif()
if(ENABLE_MANTIDPLOT)
set(_icon_filename ${IMAGES_DIR}/mantidplot)
if(_icon_suffix)
set(_icon_filename ${_icon_filename}${_icon_suffix})
endif()
install_desktop_files(mantidplot${CPACK_PACKAGE_SUFFIX}.desktop
"Mantid Plot ${_app_name_suffix}"
${CMAKE_INSTALL_PREFIX}/bin/MantidPlot
${_icon_filename}.png
mantidplot${CPACK_PACKAGE_SUFFIX}.png )
endif()
if(ENABLE_WORKBENCH)
set(_icon_filename ${IMAGES_DIR}/mantid_workbench)
......@@ -364,10 +313,6 @@ if(ENABLE_CPACK)
"OCE-draw,OCE-foundation,OCE-modeling,OCE-ocaf,OCE-visualization,"
"poco-crypto,poco-data,poco-mysql,poco-sqlite,poco-odbc,poco-util,poco-xml,poco-zip,poco-net,poco-netssl,poco-foundation,"
"hdf,hdf5,jsoncpp >= 0.7.0")
if(ENABLE_MANTIDPLOT)
set(CPACK_RPM_PACKAGE_REQUIRES
"${CPACK_RPM_PACKAGE_REQUIRES},qt4 >= 4.2,qscintilla,qwt5-qt4,qwtplot3d-qt4")
endif()
if(ENABLE_WORKBENCH)
set(CPACK_RPM_PACKAGE_REQUIRES
"${CPACK_RPM_PACKAGE_REQUIRES},qt5-qtbase,qscintilla-qt5")
......@@ -381,11 +326,6 @@ if(ENABLE_CPACK)
"python36-six,python36-PyYAML,python36-requests,python36-toml,"
"python36-ipython,python36-ipython-notebook"
)
if(ENABLE_MANTIDPLOT)
set(CPACK_RPM_PACKAGE_REQUIRES
"${CPACK_RPM_PACKAGE_REQUIRES},python36-QtPy,"
"python36-matplotlib-qt4,python36-ipython-gui")
endif()
if(ENABLE_WORKBENCH)
set(CPACK_RPM_PACKAGE_REQUIRES
"${CPACK_RPM_PACKAGE_REQUIRES},python36-qt5,python36-QtPy,"
......@@ -417,19 +357,6 @@ if(ENABLE_CPACK)
"librdkafka1,librdkafka++1,"
"libpocofoundation${POCO_SOLIB_VERSION},libpocoutil${POCO_SOLIB_VERSION},libpoconet${POCO_SOLIB_VERSION},libpoconetssl${POCO_SOLIB_VERSION},libpococrypto${POCO_SOLIB_VERSION},libpocoxml${POCO_SOLIB_VERSION}"
)
if(ENABLE_MANTIDPLOT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"${CPACK_DEBIAN_PACKAGE_DEPENDS},libqtcore4 (>= 4.2),"
"libqtgui4 (>= 4.2),"
"libqt4-opengl (>= 4.2),"
"libqt4-xml (>= 4.2),"
"libqt4-svg (>= 4.2),"
"libqt4-qt3support (>= 4.2),"
"qt4-dev-tools,"
"libqwt5-qt4,"
"libqwtplot3d-qt4-0v5,"
"libqtwebkit4")
endif()
if("${UNIX_CODENAME}" STREQUAL "bionic")
set(CPACK_DEBIAN_PACKAGE_DEPENDS
......@@ -460,10 +387,6 @@ if(ENABLE_CPACK)
"python3-yaml,"
"ipython3-qtconsole") # transitional package for bionic
if(ENABLE_MANTIDPLOT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"${CPACK_DEBIAN_PACKAGE_DEPENDS},python3-pyqt4")
endif()
if(ENABLE_WORKBENCH)
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"${CPACK_DEBIAN_PACKAGE_DEPENDS},python3-pyqt5,python3-psutil")
......
......@@ -105,9 +105,6 @@ include(PythonPackageTargetFunctions)
if(APPLE)
set(_install_lib_dirs)
list(APPEND _install_lib_dirs ${WORKBENCH_SITE_PACKAGES})
if(ENABLE_MANTIDPLOT)
list(APPEND _install_lib_dirs ${SITE_PACKAGES})
endif()
else()
set(_install_lib_dirs "${SITE_PACKAGES}")
endif()
......
......@@ -111,7 +111,7 @@ configure_file(
)
# Package version
if(WIN32 OR (APPLE AND ENABLE_MANTIDPLOT))
if(WIN32)
# NeXus library is in the same place relative to the Python library
get_filename_component(NEXUSLIB_FILE ${NEXUSLIB} NAME)
set(NEXUSLIB ../../${NEXUSLIB_FILE})
......
......@@ -5,11 +5,6 @@ if ( CPPCHECK_EXECUTABLE )
# We must export the compile commands for cppcheck to be able to check
# everything correctly
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(ENABLE_MANTIDPLOT)
set(MANTIDPLOT_CPPCHECK_SUPPRESSIONS "*:${CMAKE_SOURCE_DIR}/MantidPlot/src/zlib123/*
*:${CMAKE_SOURCE_DIR}/MantidPlot/src/origin/tree.hh
*:${CMAKE_SOURCE_DIR}/MantidPlot/src/nrutil.cpp")
endif()
configure_file(${CMAKE_SOURCE_DIR}/buildconfig/CMake/CppCheck_Suppressions.txt.in ${CMAKE_BINARY_DIR}/CppCheck_Suppressions.txt)
# setup the standard arguments
......
......@@ -237,13 +237,6 @@ set ( PARAVIEW_PYTHON_PATHS "" )
# used by mantidplot and mantidworkbench
set ( LOCAL_PYPATH "\${INSTALLDIR}/bin:\${INSTALLDIR}/lib:\${INSTALLDIR}/plugins" )
if (ENABLE_MANTIDPLOT)
set ( MANTIDPLOT_EXEC MantidPlot_exe )
configure_file ( ${CMAKE_MODULE_PATH}/Packaging/launch_mantidplot.sh.in
${CMAKE_CURRENT_BINARY_DIR}/launch_mantidplot.sh.install @ONLY )
install ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/launch_mantidplot.sh.install
DESTINATION ${BIN_DIR} RENAME launch_mantidplot.sh )
endif ()
if (ENABLE_WORKBENCH)
set ( MANTIDWORKBENCH_EXEC workbench ) # what the actual thing is called
configure_file ( ${CMAKE_MODULE_PATH}/Packaging/launch_mantidworkbench.sh.in
......
......@@ -164,19 +164,6 @@ CustomInstallLib = patch_setuptools_command('install_lib')
endforeach()
endif()
if(APPLE AND ENABLE_MANTIDPLOT)
# Horrible hack to get mantid & mantidqt into the MantidPlot.app bundle too. Remove
# this when MantidPlot is removed!! Registers the "installed" components
# with CMake so it will carry them over
install(
DIRECTORY ${_setup_py_build_root}/install/lib/
DESTINATION ${BIN_DIR}
PATTERN
"test"
EXCLUDE
)
endif()
# install the generated executable
if(_parsed_arg_EXECUTABLE AND _parsed_arg_INSTALL_BIN_DIR)
install(
......
......@@ -3,8 +3,6 @@
#
# name: mtd_add_qt_library
# brief: create a library target for linked against Qt
# The global ENABLE_MANTIDPLOT option controls if a Qt4 target
# is created.
# The global ENABLE_WORKBENCH option controls if a Qt5 target
# is created.
# To limit the Qt version for a specific library use
......@@ -20,9 +18,6 @@ function (mtd_add_qt_library)
_qt_versions(_qt_vers ${ARGN})
# Create targets
foreach(_ver ${_qt_vers})
if (_ver EQUAL 4 AND ENABLE_MANTIDPLOT)
mtd_add_qt_target (LIBRARY QT_VERSION ${_ver} ${ARGN})
endif ()
if (_ver EQUAL 5 AND ENABLE_WORKBENCH)
mtd_add_qt_target (LIBRARY QT_VERSION ${_ver} ${ARGN})
endif ()
......@@ -31,8 +26,6 @@ endfunction()
# name: mtd_add_qt_executable
# brief: create a library target for linked against Qt
# The global ENABLE_MANTIDPLOT option controls if a Qt4 target
# is created.
# The global ENABLE_WORKBENCH option controls if a Qt5 target
# is created.
# To limit the Qt version for a specific library use
......@@ -47,9 +40,6 @@ function (mtd_add_qt_executable)
_qt_versions(_qt_vers ${ARGN})
# Create targets
foreach(_ver ${_qt_vers})
if (_ver EQUAL 4 AND ENABLE_MANTIDPLOT)
mtd_add_qt_target (EXECUTABLE QT_VERSION ${_ver} ${ARGN})
endif ()
if (_ver EQUAL 5 AND ENABLE_WORKBENCH)
mtd_add_qt_target (EXECUTABLE QT_VERSION ${_ver} ${ARGN})
endif ()
......@@ -262,9 +252,6 @@ function (mtd_add_qt_tests)
_qt_versions(_qt_vers ${ARGN})
# Create test executables
foreach(_ver ${_qt_vers})
if (_ver EQUAL 4 AND ENABLE_MANTIDPLOT)
mtd_add_qt_test_executable (QT_VERSION ${_ver} ${ARGN})
endif ()
if (_ver EQUAL 5 AND ENABLE_WORKBENCH)
mtd_add_qt_test_executable (QT_VERSION ${_ver} ${ARGN})
endif ()
......@@ -348,7 +335,7 @@ function (mtd_add_qt_test_executable)
endfunction ()
# Given a list of arguments decide which Qt versions
# should be built. If ENABLE_MANTIPLOT is true the Qt4 is built.
# should be built.
# QT_VERSION can be specified to override this.
function (_qt_versions output_list)
# process argument list
......@@ -361,9 +348,7 @@ function (_qt_versions output_list)
list (GET ARGN ${_ver_value_idx} _ver_value)
list (APPEND _qt_vers ${_ver_value})
endif()
if(NOT ENABLE_MANTIDPLOT)
list (REMOVE_ITEM _qt_vers 4)
endif()
list (REMOVE_ITEM _qt_vers 4)
if(NOT ENABLE_WORKBENCH)
list (REMOVE_ITEM _qt_vers 5)
endif()
......
# Install a target into multiple directories
# This respects ENABLE_MANTIDPLOT and
# ENABLE_WORKBENCH flags for macOS
# This respects ENABLE_WORKBENCH flags for macOS
function (mtd_install_targets)
set (options)
set (oneValueArgs TARGETS)
......@@ -24,8 +23,7 @@ function (mtd_install_targets)
endfunction()
# Install files into multiple directories
# This respects ENABLE_MANTIDPLOT and
# ENABLE_WORKBENCH flags for macOS
# This respects ENABLE_WORKBENCH flags for macOS
function (mtd_install_files)
set (options)
set (oneValueArgs RENAME)
......@@ -52,8 +50,7 @@ function (mtd_install_files)
endfunction()
# Install directories into multiple directories
# This respects ENABLE_MANTIDPLOT and
# ENABLE_WORKBENCH flags for macOS
# This respects ENABLE_WORKBENCH flags for macOS
function (mtd_install_dirs)
set (options)
set (oneValueArgs DIRECTORY EXCLUDE)
......@@ -79,27 +76,24 @@ function (mtd_install_dirs)
endfunction()
# Private function to sanitize the list of install dirs
# against duplicates and taking into account ENABLE_MANTIDPLOT
# and ENABLE_WORKBENCH
# against duplicates and taking into account ENABLE_WORKBENCH
function (_sanitize_install_dirs output_variable)
set(potential_dirs ${ARGN})
# Linux/windows packages share install layouts for many things
# This ensures only a single unique install directory is present
list(REMOVE_DUPLICATES potential_dirs)
if(NOT ENABLE_WORKBENCH AND NOT ENABLE_MANTIDPLOT)
if(NOT ENABLE_WORKBENCH)
set(${output_variable} ${potential_dirs} PARENT_SCOPE)
return()
endif()
# Mac has 2 separate bundles so we need to check the status of
# ENABLE_MANTIDPLOT/WORKBENCH
# ENABLE_MANTIDWORKBENCH
if(APPLE)
set(all_dirs ${potential_dirs})
set(potential_dirs)
foreach( _dir ${all_dirs})
if(ENABLE_WORKBENCH AND ${_dir} MATCHES "${WORKBENCH_BUNDLE}.*")
list(APPEND potential_dirs ${_dir})
elseif(ENABLE_MANTIDPLOT AND ${_dir} MATCHES "${IN_BUNDLE}.*")
list(APPEND potential_dirs ${_dir})
endif()
endforeach()
endif()
......
......@@ -12,30 +12,6 @@ set(
inc/MantidQtIcons/Icon.h
)
if(ENABLE_MANTIDPLOT)
mtd_add_qt_library (TARGET_NAME MantidQtIcons
QT_VERSION 4
SRC ${SRC_FILES}
NOMOC ${INC_FILES}
RES ${CMAKE_CURRENT_LIST_DIR}/resources/icons.qrc
DEFS
IN_MANTIDQT_ICONS
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/inc
LINK_LIBS
${POCO_LIBRARIES}
${Boost_LIBRARIES}
${JSONCPP_LIBRARIES}
Qt4::QtScript
INSTALL_DIR
${LIB_DIR}
OSX_INSTALL_RPATH
@loader_path/../MacOS
@loader_path/../Frameworks
LINUX_INSTALL_RPATH
"\$ORIGIN/../${LIB_DIR}")
endif()
if(ENABLE_WORKBENCH)
mtd_add_qt_library (TARGET_NAME MantidQtIcons
QT_VERSION 5
......
......@@ -3,21 +3,13 @@
include(PythonPackageTargetFunctions)
# Legacy wrappers for MantidPlot
if(ENABLE_MANTIDPLOT)
add_subdirectory(mantidqtpython)
endif()
# mantidqt
if(ENABLE_MANTIDPLOT OR ENABLE_WORKBENCH)
if(ENABLE_WORKBENCH)
if(APPLE)
set(_install_lib_dirs)
if(ENABLE_WORKBENCH)
list(APPEND _install_lib_dirs ${WORKBENCH_SITE_PACKAGES})
endif()
if(ENABLE_MANTIDPLOT)
list(APPEND _install_lib_dirs ${SITE_PACKAGES})
endif()
else()
set(_install_lib_dirs "${SITE_PACKAGES}")
endif()
......@@ -29,9 +21,6 @@ if(ENABLE_MANTIDPLOT OR ENABLE_WORKBENCH)
# Setup dependency chain
add_dependencies(mantidqt PythonInterface)
if(ENABLE_MANTIDPLOT)
add_dependencies(mantidqt mantidqt_commonqt4 mantidqt_iconsqt4)
endif()
if(ENABLE_WORKBENCH)
# Configure resources data in place for ease of development. The output file
# is added to the toplevel gitignore
......@@ -177,11 +166,4 @@ if(ENABLE_MANTIDPLOT OR ENABLE_WORKBENCH)
${PYTHON_WIDGET_QT5_ONLY_TESTS}
)
endif()
if(ENABLE_MANTIDPLOT)
set(PYUNITTEST_QT_API pyqt)
pyunittest_add_test(
${CMAKE_CURRENT_SOURCE_DIR} mantidqt_qt4 ${PYTHON_TEST_FILES}
)
unset(PYUNITTEST_QT_API)
endif()
endif()
......@@ -24,33 +24,6 @@ list(APPEND common_link_libs
${POCO_LIBRARIES}
PythonInterfaceCore)
# Wrapper module linked against Qt4
if(ENABLE_MANTIDPLOT)
mtd_add_sip_module(MODULE_NAME _commonqt4
TARGET_NAME mantidqt_commonqt4
SIP_SRCS _common.sip
HEADER_DEPS
${_header_depends}
PYQT_VERSION 4
INCLUDE_DIRS
${CMAKE_CURRENT_LIST_DIR}
${COMMON_SIP_DIR}
LINK_LIBS
${common_link_libs}
MantidQtWidgetsCommonQt4
Qt4::QtCore
Qt4::QtGui
Qt4::Qscintilla
API
INSTALL_DIR
${SITE_PACKAGES}/mantidqt
LINUX_INSTALL_RPATH
"\$ORIGIN/.."
OSX_INSTALL_RPATH
"@loader_path/.."
FOLDER Qt4)
endif()
# Wrapper module linked against Qt5
if(ENABLE_WORKBENCH)
mtd_add_sip_module(MODULE_NAME _commonqt5
......
......@@ -5,31 +5,6 @@ set(_header_depends
${COMMON_SIP_DIR}/vector.sip
${ICONS_INC_DIR}/MantidQtIcons/Icon.h)
if(ENABLE_MANTIDPLOT)
mtd_add_sip_module(MODULE_NAME _iconsqt4
TARGET_NAME mantidqt_iconsqt4
SIP_SRCS _icons.sip
HEADER_DEPS ${_header_depends}
PYQT_VERSION 4
INCLUDE_DIRS
${COMMON_SIP_DIR}
${CMAKE_SOURCE_DIR}/Framework/PythonInterface/core/inc
${ICONS_INC_DIR}
LINK_LIBS
MantidQtIconsQt4
Qt4::QtCore
Qt4::QtGui
Qt4::QtScript
Python::Python
INSTALL_DIR
${SITE_PACKAGES}/mantidqt/icons
LINUX_INSTALL_RPATH
"\$ORIGIN/../.."
OSX_INSTALL_RPATH
"@loader_path/../.."
FOLDER Qt4)
endif()
# Wrapper module linked against Qt5
if(ENABLE_WORKBENCH)
mtd_add_sip_module(MODULE_NAME _iconsqt5
......
# Python bindings for legacy mantidqtpython library This is a Qt4-only module
# and serves to support MantidPlot alone.
include(SipQtTargetFunctions)
set(WIDGETS_DIR ../../widgets)
set(FACTORY_INC ${WIDGETS_DIR}/factory/inc)
set(WIDGETS_COMMON_INC ${WIDGETS_DIR}/common/inc)
set(DATAPROCESSOR_INC
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/DataProcessorUI)
set(INSTRUMENT_VIEW_INC ${WIDGETS_DIR}/instrumentview/inc)
set(SLICEVIEWER_INC ${WIDGETS_DIR}/sliceviewer/inc)
set(REFVIEWER_INC ${WIDGETS_DIR}/refdetectorview/inc)
set(COMMON_SIP_DIR ../common_sip)
set(
HEADER_DEPENDS
${COMMON_SIP_DIR}/SIPVector.h
${COMMON_SIP_DIR}/string.sip
${COMMON_SIP_DIR}/vector.sip
../../../Framework/PythonInterface/core/inc/MantidPythonInterface/core/VersionCompat.h
${FACTORY_INC}/MantidQtWidgets/Factory/WidgetFactory.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/WorkspaceObserver.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/GraphOptions.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/AlgorithmDialog.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/UserSubWindow.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/InterfaceManager.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/MantidDesktopServices.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/MessageDisplay.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/FileFinderWidget.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/WidgetScrollbarDecorator.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/FitPropertyBrowser.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/SlitCalculator.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/ManageUserDirectories.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/HintStrategy.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/Hint.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/Batch/Row.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/Batch/RowLocation.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/Batch/JobTreeView.h
${WIDGETS_COMMON_INC}/MantidQtWidgets/Common/Batch/JobTreeViewSignalAdapter.h
${SLICEVIEWER_INC}/MantidQtWidgets/SliceViewer/SliceViewerWindow.h
${SLICEVIEWER_INC}/MantidQtWidgets/SliceViewer/LineViewer.h
${SLICEVIEWER_INC}/MantidQtWidgets/SliceViewer/PeaksPresenter.h
${SLICEVIEWER_INC}/MantidQtWidgets/SliceViewer/ProxyCompositePeaksPresenter.h
${SLICEVIEWER_INC}/MantidQtWidgets/SliceViewer/PeaksPresenter.h
${SLICEVIEWER_INC}/MantidQtWidgets/SliceViewer/SliceViewer.h
${REFVIEWER_INC}/MantidQtWidgets/RefDetectorView/RefIVConnections.h
${REFVIEWER_INC}/MantidQtWidgets/RefDetectorView/RefMatrixWSImageView.h
${DATAPROCESSOR_INC}/WhiteList.h
${DATAPROCESSOR_INC}/PreprocessMap.h
${DATAPROCESSOR_INC}/ProcessingAlgorithm.h
${DATAPROCESSOR_INC}/PostprocessingAlgorithm.h
${DATAPROCESSOR_INC}/QDataProcessorWidget.h
${DATAPROCESSOR_INC}/DataProcessorMainPresenter.h
${DATAPROCESSOR_INC}/AppendRowCommand.h
${DATAPROCESSOR_INC}/AppendGroupCommand.h
${DATAPROCESSOR_INC}/ClearSelectedCommand.h
${DATAPROCESSOR_INC}/CopySelectedCommand.h
${DATAPROCESSOR_INC}/CutSelectedCommand.h
${DATAPROCESSOR_INC}/DeleteGroupCommand.h
${DATAPROCESSOR_INC}/DeleteRowCommand.h
${DATAPROCESSOR_INC}/ExpandCommand.h
${DATAPROCESSOR_INC}/ExportTableCommand.h
${DATAPROCESSOR_INC}/GroupRowsCommand.h
${DATAPROCESSOR_INC}/ImportTableCommand.h
${DATAPROCESSOR_INC}/NewTableCommand.h
${DATAPROCESSOR_INC}/OpenTableCommand.h
${DATAPROCESSOR_INC}/OptionsCommand.h
${DATAPROCESSOR_INC}/PasteSelectedCommand.h
${DATAPROCESSOR_INC}/PlotGroupCommand.h
${DATAPROCESSOR_INC}/PlotRowCommand.h
${DATAPROCESSOR_INC}/ProcessCommand.h
${DATAPROCESSOR_INC}/SaveTableCommand.h
${DATAPROCESSOR_INC}/SaveTableAsCommand.h
${DATAPROCESSOR_INC}/SeparatorCommand.h
${DATAPROCESSOR_INC}/WorkspaceCommand.h
${INSTRUMENT_VIEW_INC}/MantidQtWidgets/InstrumentView/InstrumentWidgetTab.h
${INSTRUMENT_VIEW_INC}/MantidQtWidgets/InstrumentView/InstrumentWidget.h
${INSTRUMENT_VIEW_INC}/MantidQtWidgets/InstrumentView/InstrumentWidgetRenderTab.h
${INSTRUMENT_VIEW_INC}/MantidQtWidgets/InstrumentView/InstrumentWidgetPickTab.h
${INSTRUMENT_VIEW_INC}/MantidQtWidgets/InstrumentView/InstrumentWidgetMaskTab.h
${INSTRUMENT_VIEW_INC}/MantidQtWidgets/InstrumentView/InstrumentWidgetTreeTab.h
)
mtd_add_sip_module(MODULE_NAME mantidqtpython
TARGET_NAME mantidqtpython
SIP_SRCS mantidqtpython_def.sip
HEADER_DEPS
${HEADER_DEPENDS}
INCLUDE_DIRS
${CMAKE_CURRENT_LIST_DIR}
${COMMON_SIP_DIR}
../../../Framework/PythonInterface/core/inc
PYQT_VERSION 4
LINK_LIBS
MantidQtWidgetsCommonQt4
MantidQtWidgetsPlottingQt4
MantidQtWidgetsSliceViewerQt4
MantidQtWidgetsFactoryQt4
MantidQtWidgetsRefDetectorViewQt4
MantidQtWidgetsSpectrumViewerQt4
MantidQtWidgetsInstrumentViewQt4
${CORE_MANTIDLIBS}
${POCO_LIBRARIES}
${Boost_LIBRARIES}
Qt4::QtCore
Qt4::QtGui
Qt4::QtOpenGL
Qt4::Qscintilla
Qwt5
Python::Python
FOLDER Qt4
OSX_INSTALL_RPATH
@loader_path/../Contents/MacOS
@loader_path/../Contents/Frameworks
LINUX_INSTALL_RPATH
"\$ORIGIN/../${LIB_DIR}")
if(MSVC)
# Windows: Python library name needs to end in .pyd for Windows Debug python
# library expects imported module names to end in _d For a debug build copy
# the special PyQt4 debug build to the bin directory
add_custom_command(
TARGET mantidqtpython
POST_BUILD
COMMAND if 1==$<CONFIG:Debug> ${CMAKE_COMMAND} -E copy_directory
${MSVC_PYTHON_EXECUTABLE_DIR}/msvc-site-packages/debug/PyQt4
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/PyQt4
COMMENT "Copying debug PyQt4 to bin")
endif()
# Installation settings
install(TARGETS mantidqtpython DESTINATION ${BIN_DIR})
This directory contains the MantidQt Python exports for the
legacy `mantidqtpython` library used by MantidPlot.