Newer
Older
# GLOBs should be replaced with explicit listings
Janik Zikovsky
committed
set ( SRC_FILES
# Old TMP convertToMD code prepared for deprecation:
src/BoxControllerSettingsAlgorithm.cpp
src/CompareMDWorkspaces.cpp
src/ConvToMDEventsWS.cpp
src/ConvToMDHistoWS.cpp
src/ConvToMDSelector.cpp
src/ConvertCWPDMDToSpectra.cpp
src/ConvertCWSDExpToMomentum.cpp
src/ConvertMDHistoToMatrixWorkspace.cpp
src/ConvertSpiceDataToRealSpace.cpp
src/ConvertToDetectorFaceMD.cpp
src/ConvertToDiffractionMDWorkspace.cpp
src/ConvertToDiffractionMDWorkspace2.cpp
src/ConvertToMD.cpp
src/ConvertToMDMinMaxGlobal.cpp
src/ConvertToMDMinMaxLocal.cpp
src/ConvertToMDParent.cpp
src/ConvertToReflectometryQ.cpp
src/CreateMDHistoWorkspace.cpp
src/DisplayNormalizationSetter.cpp
src/EvaluateMDFunction.cpp
src/FakeMDEventData.cpp
src/FindPeaksMD.cpp
src/GetSpiceDataRawCountsFromMD.cpp
Janik Zikovsky
committed
src/IDynamicRebinning.cpp
src/ImportMDEventWorkspace.cpp
src/ImportMDHistoWorkspace.cpp
src/ImportMDHistoWorkspaceBase.cpp
src/Integrate3DEvents.cpp
src/IntegrateEllipsoids.cpp
Janik Zikovsky
committed
src/InvalidParameter.cpp
src/InvalidParameterParser.cpp
src/LoadILLAscii.cpp
src/LoadILLAsciiHelper.cpp
src/LoadMD.cpp
src/LoadSQW.cpp
src/MDEventWSWrapper.cpp
src/MDTransfAxisNames.cpp
src/MDTransfFactory.cpp
src/MDTransfModQ.cpp
src/MDTransfNoQ.cpp
src/MDTransfQ3D.cpp
src/MDWSDescription.cpp
src/MDWSTransform.cpp
src/MinusMD.cpp
src/MultiplyMD.cpp
src/Quantification/CachedExperimentInfo.cpp
src/Quantification/FitResolutionConvolvedModel.cpp
src/Quantification/ForegroundModel.cpp
src/Quantification/ForegroundModelFactory.cpp
src/Quantification/MDResolutionConvolution.cpp
src/Quantification/MDResolutionConvolutionFactory.cpp
src/Quantification/Models/MullerAnsatz.cpp
src/Quantification/Models/QCoordinate.cpp
src/Quantification/Models/Strontium122.cpp
src/Quantification/Resolution/ModeratorChopperResolution.cpp
src/Quantification/Resolution/TobyFitBMatrix.cpp
src/Quantification/Resolution/TobyFitResolutionModel.cpp
src/Quantification/Resolution/TobyFitYVector.cpp
src/Quantification/ResolutionConvolvedCrossSection.cpp
src/Quantification/SimulateResolutionConvolvedModel.cpp
src/QueryMDWorkspace.cpp
src/ReflectometryTransformKiKf.cpp
src/ReflectometryTransformP.cpp
src/ReflectometryTransformQxQz.cpp
src/SaveIsawQvector.cpp
src/SaveMD2.cpp
src/SliceMD.cpp
src/SlicingAlgorithm.cpp
src/TransformMD.cpp
src/UnaryOperationMD.cpp
src/UnitsConversionHelper.cpp
src/UserFunctionMD.cpp
src/Vector3DParameterParser.cpp
#set ( SRC_UNITY_IGNORE_FILES src/IDynamicRebinning.cpp
#)
Owen Arnold
committed
Janik Zikovsky
committed
set ( INC_FILES
# inc/MantidMDAlgorithms/CreateMDFitWorkspace.h
inc/MantidMDAlgorithms/BinaryOperationMD.h
inc/MantidMDAlgorithms/BooleanBinaryOperationMD.h
inc/MantidMDAlgorithms/BoxControllerSettingsAlgorithm.h
inc/MantidMDAlgorithms/CalculateCoverageDGS.h
inc/MantidMDAlgorithms/CentroidPeaksMD.h
inc/MantidMDAlgorithms/CloneMDWorkspace.h
inc/MantidMDAlgorithms/CompareMDWorkspaces.h
inc/MantidMDAlgorithms/CompactMD.h
inc/MantidMDAlgorithms/ConvToMDBase.h
inc/MantidMDAlgorithms/ConvertCWPDMDToSpectra.h
inc/MantidMDAlgorithms/ConvertCWSDExpToMomentum.h
inc/MantidMDAlgorithms/ConvertMDHistoToMatrixWorkspace.h
inc/MantidMDAlgorithms/ConvertSpiceDataToRealSpace.h
inc/MantidMDAlgorithms/ConvertToDetectorFaceMD.h
inc/MantidMDAlgorithms/ConvertToDiffractionMDWorkspace.h
inc/MantidMDAlgorithms/ConvertToDiffractionMDWorkspace2.h
inc/MantidMDAlgorithms/ConvertToMD.h
inc/MantidMDAlgorithms/ConvertToMDMinMaxGlobal.h
inc/MantidMDAlgorithms/ConvertToMDMinMaxLocal.h
inc/MantidMDAlgorithms/ConvertToMDParent.h
inc/MantidMDAlgorithms/ConvertToReflectometryQ.h
inc/MantidMDAlgorithms/CreateMDHistoWorkspace.h
inc/MantidMDAlgorithms/CreateMDWorkspace.h
inc/MantidMDAlgorithms/DisplayNormalizationSetter.h
inc/MantidMDAlgorithms/DllConfig.h
inc/MantidMDAlgorithms/EvaluateMDFunction.h
inc/MantidMDAlgorithms/ExponentialMD.h
inc/MantidMDAlgorithms/FakeMDEventData.h
inc/MantidMDAlgorithms/FindPeaksMD.h
inc/MantidMDAlgorithms/FitMD.h
inc/MantidMDAlgorithms/GSLFunctions.h
inc/MantidMDAlgorithms/GetSpiceDataRawCountsFromMD.h
Janik Zikovsky
committed
inc/MantidMDAlgorithms/IDynamicRebinning.h
inc/MantidMDAlgorithms/ImportMDEventWorkspace.h
inc/MantidMDAlgorithms/ImportMDHistoWorkspace.h
inc/MantidMDAlgorithms/ImportMDHistoWorkspaceBase.h
inc/MantidMDAlgorithms/Integrate3DEvents.h
inc/MantidMDAlgorithms/IntegrateEllipsoids.h
inc/MantidMDAlgorithms/IntegrateFlux.h
inc/MantidMDAlgorithms/IntegrateMDHistoWorkspace.h
inc/MantidMDAlgorithms/IntegratePeaksMD.h
Janik Zikovsky
committed
inc/MantidMDAlgorithms/InvalidParameter.h
inc/MantidMDAlgorithms/InvalidParameterParser.h
inc/MantidMDAlgorithms/LoadILLAscii.h
inc/MantidMDAlgorithms/LoadILLAsciiHelper.h
inc/MantidMDAlgorithms/LoadMD.h
inc/MantidMDAlgorithms/LoadSQW.h
inc/MantidMDAlgorithms/LogarithmMD.h
inc/MantidMDAlgorithms/MDEventWSWrapper.h
inc/MantidMDAlgorithms/MDNormDirectSC.h
inc/MantidMDAlgorithms/MDNormSCD.h
inc/MantidMDAlgorithms/MDTransfAxisNames.h
inc/MantidMDAlgorithms/MDTransfFactory.h
inc/MantidMDAlgorithms/MDTransfModQ.h
inc/MantidMDAlgorithms/MDTransfNoQ.h
inc/MantidMDAlgorithms/MDTransfQ3D.h
inc/MantidMDAlgorithms/MDWSDescription.h
inc/MantidMDAlgorithms/MDWSTransform.h
inc/MantidMDAlgorithms/MergeMDFiles.h
inc/MantidMDAlgorithms/MinusMD.h
inc/MantidMDAlgorithms/MultiplyMD.h
inc/MantidMDAlgorithms/OneStepMDEW.h
inc/MantidMDAlgorithms/PlusMD.h
inc/MantidMDAlgorithms/PowerMD.h
inc/MantidMDAlgorithms/PreprocessDetectorsToMD.h
inc/MantidMDAlgorithms/Quantification/CachedExperimentInfo.h
inc/MantidMDAlgorithms/Quantification/FitResolutionConvolvedModel.h
inc/MantidMDAlgorithms/Quantification/ForegroundModel.h
inc/MantidMDAlgorithms/Quantification/ForegroundModelFactory.h
inc/MantidMDAlgorithms/Quantification/MDResolutionConvolution.h
inc/MantidMDAlgorithms/Quantification/MDResolutionConvolutionFactory.h
inc/MantidMDAlgorithms/Quantification/Models/MullerAnsatz.h
inc/MantidMDAlgorithms/Quantification/Models/QCoordinate.h
inc/MantidMDAlgorithms/Quantification/Models/Strontium122.h
inc/MantidMDAlgorithms/Quantification/Resolution/ModeratorChopperResolution.h
inc/MantidMDAlgorithms/Quantification/Resolution/TobyFitBMatrix.h
inc/MantidMDAlgorithms/Quantification/Resolution/TobyFitResolutionModel.h
inc/MantidMDAlgorithms/Quantification/Resolution/TobyFitYVector.h
inc/MantidMDAlgorithms/Quantification/ResolutionConvolvedCrossSection.h
inc/MantidMDAlgorithms/Quantification/SimulateResolutionConvolvedModel.h
inc/MantidMDAlgorithms/QueryMDWorkspace.h
inc/MantidMDAlgorithms/ReflectometryTransformKiKf.h
inc/MantidMDAlgorithms/ReflectometryTransformP.h
inc/MantidMDAlgorithms/ReflectometryTransformQxQz.h
inc/MantidMDAlgorithms/ReplicateMD.h
inc/MantidMDAlgorithms/SaveIsawQvector.h
inc/MantidMDAlgorithms/SaveMD2.h
inc/MantidMDAlgorithms/SaveZODS.h
inc/MantidMDAlgorithms/SetMDUsingMask.h
inc/MantidMDAlgorithms/SliceMD.h
inc/MantidMDAlgorithms/SlicingAlgorithm.h
inc/MantidMDAlgorithms/TransformMD.h
inc/MantidMDAlgorithms/UnaryOperationMD.h
inc/MantidMDAlgorithms/UnitsConversionHelper.h
inc/MantidMDAlgorithms/Vector3DParameter.h
inc/MantidMDAlgorithms/Vector3DParameterParser.h
inc/MantidMDAlgorithms/WeightedMeanMD.h
Michael Reuter
committed
# Test files. Other source files required.
Janik Zikovsky
committed
set ( TEST_FILES
# these tests are as they test verify different parts of the CPR algorithms
#CreateMDFitWorkspaceTest.h
AndMDTest.h
BooleanBinaryOperationMDTest.h
BoxControllerSettingsAlgorithmTest.h
CachedExperimentInfoTest.h
CompareMDWorkspacesTest.h
ConvertCWSDExpToMomentumTest.h
ConvertEventsToMDTest.h
ConvertMDHistoToMatrixWorkspaceTest.h
ConvertSpiceDataToRealSpaceTest.h
ConvertToDetectorFaceMDTest.h
ConvertToDiffractionMDWorkspace2Test.h
ConvertToDiffractionMDWorkspaceTest.h
ConvertToMDMinMaxGlobalTest.h
ConvertToMDTest.h
ConvertToQ3DdETest.h
ConvertToReflectometryQTest.h
CreateMDHistoWorkspaceTest.h
CreateMDWorkspaceTest.h
DisplayNormalizationSetterTest.h
DivideMDTest.h
EqualToMDTest.h
EvaluateMDFunctionTest.h
FitResolutionConvolvedModelTest.h
ForegroundModelTest.h
GetSpiceDataRawCountsFromMDTest.h
GreaterThanMDTest.h
ImportMDEventWorkspaceTest.h
ImportMDHistoWorkspaceTest.h
Integrate3DEventsTest.h
IntegrateEllipsoidsTest.h
InvalidParameterParserTest.h
InvalidParameterTest.h
LessThanMDTest.h
LogarithmMDTest.h
MDResolutionConvolutionFactoryTest.h
MDTransfAxisNamesTest.h
MDTransfFactoryTest.h
MDTransfModQTest.h
MDTransfQ3DTest.h
MDWSDescriptionTest.h
MaskMDTest.h
MergeMDFilesTest.h
MergeMDTest.h
MinusMDTest.h
ModeratorChopperResolutionTest.h
MultiplyMDTest.h
NotMDTest.h
OrMDTest.h
PlusMDTest.h
PowerMDTest.h
QueryMDWorkspaceTest.h
ReflectometryTransformKiKfTest.h
ReflectometryTransformPTest.h
ReflectometryTransformQxQzTest.h
ResolutionConvolvedCrossSectionTest.h
SaveMD2Test.h
SaveZODSTest.h
SetMDUsingMaskTest.h
SimulateResolutionConvolvedModelTest.h
SliceMDTest.h
SlicingAlgorithmTest.h
Strontium122Test.h
TobyFitBMatrixTest.h
TobyFitResolutionModelTest.h
TobyFitYVectorTest.h
TransformMDTest.h
UnaryOperationMDTest.h
UnitsConversionHelperTest.h
WeightedMeanMDTest.h
XorMDTest.h
Michael Reuter
committed
)
Michael Reuter
committed
set ( GMOCK_TEST_FILES
BinaryOperationMDTest.h
Michael Reuter
committed
)
if (COVERALLS)
foreach( loop_var ${SRC_FILES} ${INC_FILES})
set_property(GLOBAL APPEND PROPERTY COVERAGE_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}")
endforeach(loop_var)
endif()
Owen Arnold
committed
if(UNITY_BUILD)
include(UnityBuild)
Gigg, Martyn Anthony
committed
enable_unity_build(MDAlgorithms SRC_FILES SRC_UNITY_IGNORE_FILES 10)
Owen Arnold
committed
endif(UNITY_BUILD)
Gigg, Martyn Anthony
committed
# Use a precompiled header where they are supported
enable_precompiled_headers( inc/MantidMDAlgorithms/PrecompiledHeader.h SRC_FILES )
# Add the target for this directory
add_library ( MDAlgorithms ${SRC_FILES} ${INC_FILES})
# Set the name of the generated library
set_target_properties ( MDAlgorithms PROPERTIES OUTPUT_NAME MantidMDAlgorithms
COMPILE_DEFINITIONS IN_MANTID_MDALGORITHMS )
if (OSX_VERSION VERSION_GREATER 10.8)
set_target_properties ( MDAlgorithms PROPERTIES INSTALL_RPATH "@loader_path/../Contents/MacOS")
endif ()
# Add to the 'Framework' group in VS
set_property ( TARGET MDAlgorithms PROPERTY FOLDER "MantidFramework" )
target_link_libraries ( MDAlgorithms LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${MANTIDLIBS} ${GSL_LIBRARIES} ${NEXUS_LIBRARIES} )
Michael Reuter
committed
# Add the unit tests directory
add_subdirectory ( test )
Michael Reuter
committed
###########################################################################
# Installation settings
###########################################################################
install ( TARGETS MDAlgorithms ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PLUGINS_DIR} )