Skip to content
Snippets Groups Projects
CMakeLists.txt 12.8 KiB
Newer Older
# GLOBs should be replaced with explicit listings
	# Old TMP convertToMD code prepared for deprecation:
	# src/CreateMDFitWorkspace.cpp
	src/AndMD.cpp
	src/BinMD.cpp
	src/BinaryOperationMD.cpp
	src/BooleanBinaryOperationMD.cpp
	src/BoxControllerSettingsAlgorithm.cpp
	src/CalculateCoverageDGS.cpp
	src/CentroidPeaksMD.cpp
Lynch, Vickie's avatar
Lynch, Vickie committed
	src/CentroidPeaksMD2.cpp
	src/CloneMDWorkspace.cpp
    src/CompactMD.cpp
	src/CompareMDWorkspaces.cpp
	src/ConvToMDBase.cpp
	src/ConvToMDEventsWS.cpp
	src/ConvToMDHistoWS.cpp
	src/ConvertCWPDMDToSpectra.cpp
	src/ConvertCWSDExpToMomentum.cpp
	src/ConvertCWSDMDtoHKL.cpp
	src/ConvertMDHistoToMatrixWorkspace.cpp
	src/ConvertSpiceDataToRealSpace.cpp
	src/ConvertToDetectorFaceMD.cpp
	src/ConvertToDiffractionMDWorkspace.cpp
	src/ConvertToDiffractionMDWorkspace2.cpp
	src/ConvertToMDMinMaxGlobal.cpp
	src/ConvertToMDMinMaxLocal.cpp
	src/ConvertToMDParent.cpp
	src/ConvertToReflectometryQ.cpp
	src/CreateMDHistoWorkspace.cpp
	src/CreateMDWorkspace.cpp
	src/CutMD.cpp
	src/DisplayNormalizationSetter.cpp	
	src/DivideMD.cpp
	src/EqualToMD.cpp
	src/EvaluateMDFunction.cpp
	src/ExponentialMD.cpp
	src/FakeMDEventData.cpp
	src/FindPeaksMD.cpp
	src/GetSpiceDataRawCountsFromMD.cpp
	src/GreaterThanMD.cpp
	src/ImportMDEventWorkspace.cpp
	src/ImportMDHistoWorkspace.cpp
	src/ImportMDHistoWorkspaceBase.cpp
	src/Integrate3DEvents.cpp
	src/IntegrateEllipsoids.cpp
	src/IntegrateFlux.cpp
	src/IntegrateMDHistoWorkspace.cpp
	src/IntegratePeaksMD.cpp
Lynch, Vickie's avatar
Lynch, Vickie committed
	src/IntegratePeaksMD2.cpp
	src/InvalidParameter.cpp
	src/InvalidParameterParser.cpp
	src/LessThanMD.cpp
	src/LoadILLAscii.cpp
	src/LoadILLAsciiHelper.cpp
	src/LoadMD.cpp
	src/LoadSQW.cpp
	src/LogarithmMD.cpp
	src/MDEventWSWrapper.cpp
	src/MDNormDirectSC.cpp
	src/MDNormSCD.cpp
	src/MDTransfAxisNames.cpp
	src/MDTransfFactory.cpp
	src/MDTransfModQ.cpp
	src/MDTransfQ3D.cpp
	src/MDWSDescription.cpp
	src/MDWSTransform.cpp
	src/MaskMD.cpp
	src/MergeMD.cpp
	src/MergeMDFiles.cpp
	src/MinusMD.cpp
	src/MultiplyMD.cpp
	src/NotMD.cpp
	src/OneStepMDEW.cpp
	src/OrMD.cpp
	src/PlusMD.cpp
	src/PowerMD.cpp
	src/PreprocessDetectorsToMD.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/ReplicateMD.cpp
	src/SaveIsawQvector.cpp
	src/SaveMD.cpp
	src/SaveZODS.cpp
	src/SetMDUsingMask.cpp
	src/SliceMD.cpp
	src/SlicingAlgorithm.cpp
	src/SmoothMD.cpp
	src/ThresholdMD.cpp
	src/TransposeMD.cpp
	src/UnaryOperationMD.cpp
	src/UnitsConversionHelper.cpp
	src/UserFunctionMD.cpp
	src/WeightedMeanMD.cpp
	src/XorMD.cpp
#set ( SRC_UNITY_IGNORE_FILES src/IDynamicRebinning.cpp
#)
	# inc/MantidMDAlgorithms/CreateMDFitWorkspace.h
	inc/MantidMDAlgorithms/AndMD.h
	inc/MantidMDAlgorithms/BinMD.h
	inc/MantidMDAlgorithms/BinaryOperationMD.h
	inc/MantidMDAlgorithms/BooleanBinaryOperationMD.h
	inc/MantidMDAlgorithms/BoxControllerSettingsAlgorithm.h
	inc/MantidMDAlgorithms/CalculateCoverageDGS.h
	inc/MantidMDAlgorithms/CentroidPeaksMD.h
Lynch, Vickie's avatar
Lynch, Vickie committed
	inc/MantidMDAlgorithms/CentroidPeaksMD2.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/ConvertCWSDMDtoHKL.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/CutMD.h
	inc/MantidMDAlgorithms/DisplayNormalizationSetter.h
	inc/MantidMDAlgorithms/DivideMD.h
	inc/MantidMDAlgorithms/DllConfig.h
	inc/MantidMDAlgorithms/EqualToMD.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
	inc/MantidMDAlgorithms/GreaterThanMD.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
Lynch, Vickie's avatar
Lynch, Vickie committed
	inc/MantidMDAlgorithms/IntegratePeaksMD2.h
	inc/MantidMDAlgorithms/InvalidParameter.h
	inc/MantidMDAlgorithms/InvalidParameterParser.h
	inc/MantidMDAlgorithms/LessThanMD.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/MaskMD.h
	inc/MantidMDAlgorithms/MergeMD.h
	inc/MantidMDAlgorithms/MergeMDFiles.h
	inc/MantidMDAlgorithms/MinusMD.h
	inc/MantidMDAlgorithms/MultiplyMD.h
	inc/MantidMDAlgorithms/NotMD.h
	inc/MantidMDAlgorithms/OneStepMDEW.h
	inc/MantidMDAlgorithms/OrMD.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/SaveMD.h
	inc/MantidMDAlgorithms/SaveMD2.h
	inc/MantidMDAlgorithms/SaveZODS.h
	inc/MantidMDAlgorithms/SetMDUsingMask.h
	inc/MantidMDAlgorithms/SliceMD.h
	inc/MantidMDAlgorithms/SlicingAlgorithm.h
	inc/MantidMDAlgorithms/SmoothMD.h
	inc/MantidMDAlgorithms/ThresholdMD.h
	inc/MantidMDAlgorithms/TransformMD.h
	inc/MantidMDAlgorithms/TransposeMD.h
	inc/MantidMDAlgorithms/UnaryOperationMD.h
	inc/MantidMDAlgorithms/UnitsConversionHelper.h
	inc/MantidMDAlgorithms/Vector3DParameter.h
	inc/MantidMDAlgorithms/Vector3DParameterParser.h
	inc/MantidMDAlgorithms/WeightedMeanMD.h
	inc/MantidMDAlgorithms/XorMD.h
	# these tests are as they test verify different parts of the CPR algorithms
	#CreateMDFitWorkspaceTest.h
	AndMDTest.h
	BooleanBinaryOperationMDTest.h
	BoxControllerSettingsAlgorithmTest.h
	CalculateCoverageDGSTest.h
Lynch, Vickie's avatar
Lynch, Vickie committed
	CentroidPeaksMD2Test.h
	CentroidPeaksMDTest.h
	CloneMDWorkspaceTest.h
    CompactMDTest.h
	ConvertCWPDMDToSpectraTest.h
	ConvertCWSDExpToMomentumTest.h
	ConvertCWSDMDtoHKLTest.h
	ConvertMDHistoToMatrixWorkspaceTest.h
	ConvertSpiceDataToRealSpaceTest.h
	ConvertToDiffractionMDWorkspace2Test.h
	ConvertToDiffractionMDWorkspaceTest.h
	ConvertToMDComponentsTest.h
	ConvertToMDMinMaxGlobalTest.h
	ConvertToMDMinMaxLocalTest.h
	ConvertToMDTest.h
	ConvertToQ3DdETest.h
	ConvertToReflectometryQTest.h
	CreateMDHistoWorkspaceTest.h
	CreateMDWorkspaceTest.h
	CutMDTest.h
	DisplayNormalizationSetterTest.h
	EvaluateMDFunctionTest.h
	ExponentialMDTest.h
Alex Buts's avatar
Alex Buts committed
	FakeMDEventDataTest.h
	FindPeaksMDTest.h
	FitResolutionConvolvedModelTest.h
	ForegroundModelTest.h
	GetSpiceDataRawCountsFromMDTest.h
	ImportMDEventWorkspaceTest.h
	ImportMDHistoWorkspaceTest.h
	Integrate3DEventsTest.h
	IntegrateEllipsoidsTest.h
	IntegrateFluxTest.h
	IntegrateMDHistoWorkspaceTest.h
Lynch, Vickie's avatar
Lynch, Vickie committed
	IntegratePeaksMD2Test.h
	IntegratePeaksMDTest.h
	InvalidParameterParserTest.h
	InvalidParameterTest.h
	LessThanMDTest.h
	LoadMDTest.h
	LoadSQWTest.h
	MDEventWSWrapperTest.h
	MDNormDirectSCTest.h
	MDResolutionConvolutionFactoryTest.h
	MDTransfAxisNamesTest.h
	MDTransfFactoryTest.h
	MDTransfModQTest.h
	MDTransfQ3DTest.h
	MDWSDescriptionTest.h
	MaskMDTest.h
	MergeMDFilesTest.h
	MergeMDTest.h
	MinusMDTest.h
	ModeratorChopperResolutionTest.h
	MullerAnsatzTest.h
	PreprocessDetectorsToMDTest.h
	QueryMDWorkspaceTest.h
	ReflectometryTransformKiKfTest.h
	ReflectometryTransformPTest.h
	ReflectometryTransformQxQzTest.h
	ResolutionConvolvedCrossSectionTest.h
	SaveIsawQvectorTest.h
	SaveZODSTest.h
	SetMDUsingMaskTest.h
	SimulateResolutionConvolvedModelTest.h
	SliceMDTest.h
	SlicingAlgorithmTest.h
	SmoothMDTest.h
	ThresholdMDTest.h
	TobyFitBMatrixTest.h
	TobyFitResolutionModelTest.h
	TobyFitYVectorTest.h
	TransformMDTest.h
	TransposeMDTest.h
	UnitsConversionHelperTest.h
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()

  enable_unity_build(MDAlgorithms SRC_FILES SRC_UNITY_IGNORE_FILES 10)
# 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" )
include_directories ( inc )
target_link_libraries ( MDAlgorithms LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${MANTIDLIBS} ${GSL_LIBRARIES} ${NEXUS_LIBRARIES}  )
# Add the unit tests directory
add_subdirectory ( test )

###########################################################################
# Installation settings
###########################################################################

install ( TARGETS MDAlgorithms ${SYSTEM_PACKAGE_TARGET} DESTINATION ${PLUGINS_DIR} )