Skip to content
Snippets Groups Projects
Commit 8f954260 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Fix compilation of science interfaces

Refs #20288
parent 7616fd22
No related merge requests found
......@@ -49,6 +49,8 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesDynamicPDF
UI ${UI_FILES}
DEFS IN_MANTIDQT_DYNAMICPDF
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
......
......@@ -45,6 +45,8 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesEnggDiffraction
UI ${UI_FILES}
DEFS IN_MANTIDQT_ENGGDIFFRACTION
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
......
......@@ -53,6 +53,8 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesGeneral
UI ${UI_FILES}
DEFS IN_MANTIDQT_INTERFACESGENERAL
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
......
......@@ -102,6 +102,8 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesISISReflectometry
UI ${UI_FILES}
DEFS IN_MANTIDQT_ISISREFLECTOMETRY
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
......
......@@ -45,17 +45,19 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesISISSANS
UI ${UI_FILES}
DEFS IN_MANTIDQT_ISISSANS
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
${QT_LIBRARIES}
${QWT_LIBRARIES}
${POCO_LIBRARIES}
${Boost_LIBRARIES}
${JSONCPP_LIBRARIES}
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
${QT_LIBRARIES}
${QWT_LIBRARIES}
${POCO_LIBRARIES}
${Boost_LIBRARIES}
${JSONCPP_LIBRARIES}
MTD_QT_LINK_LIBS
MantidQtWidgetsCommon
MantidScientificInterfacesMuon
MantidQtWidgetsCommon
MantidScientificInterfacesMuon
INSTALL_DIR ${PLUGINS_DIR}/qtplugins/mantid
OSX_INSTALL_RPATH "@loader_path/../../../Contents/MacOS"
)
......
......@@ -173,6 +173,8 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesIndirect
UI ${UI_FILES}
DEFS IN_MANTIDQT_INDIRECT
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
${CORE_MANTIDLIBS}
......
......@@ -52,7 +52,6 @@ mtd_add_qt_library (TARGET_NAME MantidScientificInterfacesMultiDatasetFit
DEFS IN_MANTIDQT_MULTIDATASETFIT
PRECOMPILED PrecompiledHeader.h
INCLUDE_DIRS
# required to populate the public interface includes property
..
LINK_LIBS
${TCMALLOC_LIBRARIES_LINKTIME}
......
set ( TEST_FILES
ALCBaselineModellingModelTest.h
ALCBaselineModellingPresenterTest.h
ALCDataLoadingPresenterTest.h
ALCLatestFileFinderTest.h
ALCPeakFittingModelTest.h
ALCPeakFittingPresenterTest.h
EnggDiffFittingPresenterTest.h
EnggDiffractionPresenterTest.h
IO_MuonGroupingTest.h
MDFLogValueFinderTest.h
MeasurementItemTest.h
MuonAnalysisDataLoaderTest.h
MuonAnalysisFitDataPresenterTest.h
MuonAnalysisFitFunctionPresenterTest.h
MuonAnalysisHelperTest.h
MuonAnalysisResultTableCreatorTest.h
ReflDataProcessorPresenterTest.h
ReflEventPresenterTest.h
ReflEventTabPresenterTest.h
ReflLegacyTransferStrategyTest.h
ReflMainWindowPresenterTest.h
ReflMeasureTransferStrategyTest.h
ReflNexusMeasurementItemSourceTest.h
ReflRunsTabPresenterTest.h
ReflSaveTabPresenterTest.h
ReflSettingsPresenterTest.h
ReflSettingsTabPresenterTest.h
UserInputValidatorTest.h
)
if ( CXXTEST_FOUND )
include_directories ( SYSTEM ${CXXTEST_INCLUDE_DIR} ${GMOCK_INCLUDE_DIR} ${GTEST_INCLUDE_DIR} )
include_directories ( ${CMAKE_CURRENT_BINARY_DIR}/../Muon )
include_directories( ../../../Framework/TestHelpers/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/ScopedFileHelper.cpp
../../../Framework/TestHelpers/src/TearDownWorld.cpp
)
cxxtest_add_test ( ScientificInterfacesTest ${TEST_FILES} ${GMOCK_TEST_FILES} )
target_link_libraries( ScientificInterfacesTest LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME}
MantidScientificInterfacesGeneralQt4
MantidScientificInterfacesMuonQt4
MantidScientificInterfacesISISReflectometryQt4
MantidScientificInterfacesEnggDiffractionQt4
MantidScientificInterfacesMultiDatasetFitQt4
MantidQtWidgetsCommonQt4
API
DataObjects
Geometry
HistogramData
Types
Kernel
${Boost_LIBRARIES}
${POCO_LIBRARIES}
${QWT_LIBRARIES}
${QT_LIBRARIES}
${GMOCK_LIBRARIES}
${GTEST_LIBRARIES} )
add_dependencies( ScientificInterfacesTest MDAlgorithms )
# Test data
add_dependencies( ScientificInterfacesTest StandardTestData )
add_dependencies( GUITests ScientificInterfacesTest )
# Add to the 'UnitTests' group in VS
set_property( TARGET ScientificInterfacesTest PROPERTY FOLDER "UnitTests" )
endif ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment