Skip to content
Snippets Groups Projects
CMakeLists.txt 4.91 KiB
Newer Older
set ( SRC_FILES
	src/AlignAndFocusPowder.cpp
	src/ComputeSensitivity.cpp
	src/DgsAbsoluteUnitsReduction.cpp
	src/DgsConvertToEnergyTransfer.cpp
	src/DgsDiagnose.cpp
	src/DgsPreprocessData.cpp
	src/DgsProcessDetectorVanadium.cpp
	src/DgsReduction.cpp
	src/DgsRemap.cpp
	src/EQSANSDarkCurrentSubtraction.cpp
	src/EQSANSDarkCurrentSubtraction2.cpp
	src/EQSANSInstrument.cpp
	src/EQSANSLoad.cpp
	src/EQSANSMonitorTOF.cpp
	src/EQSANSPatchSensitivity.cpp
	src/EQSANSQ2D.cpp
	src/ExtractQENSMembers.cpp
	src/HFIRDarkCurrentSubtraction.cpp
	src/HFIRInstrument.cpp
	src/HFIRLoad.cpp
	src/IMuonAsymmetryCalculator.cpp
Peterson, Peter's avatar
Peterson, Peter committed
	src/LoadEventAndCompress.cpp
	src/MuonGroupAsymmetryCalculator.cpp
	src/MuonGroupCalculator.cpp
	src/MuonGroupCountsCalculator.cpp
	src/MuonPairAsymmetryCalculator.cpp
	src/ProcessIndirectFitParameters.cpp
	src/RefRoi.cpp
	src/SANSBeamFinder.cpp
	src/SANSBeamFluxCorrection.cpp
	src/SANSSensitivityCorrection.cpp
	src/SANSSolidAngleCorrection.cpp
	src/SetupEQSANSReduction.cpp
  src/SetupHFIRReduction.cpp
	src/StepScan.cpp
	src/WorkflowAlgorithmHelpers.cpp
Peterson, Peter's avatar
Peterson, Peter committed

set ( SRC_UNITY_IGNORE_FILES
	inc/MantidWorkflowAlgorithms/AlignAndFocusPowder.h
	inc/MantidWorkflowAlgorithms/ComputeSensitivity.h
	inc/MantidWorkflowAlgorithms/DgsAbsoluteUnitsReduction.h
	inc/MantidWorkflowAlgorithms/DgsConvertToEnergyTransfer.h
	inc/MantidWorkflowAlgorithms/DgsDiagnose.h
	inc/MantidWorkflowAlgorithms/DgsPreprocessData.h
	inc/MantidWorkflowAlgorithms/DgsProcessDetectorVanadium.h
	inc/MantidWorkflowAlgorithms/DgsReduction.h
	inc/MantidWorkflowAlgorithms/DgsRemap.h
	inc/MantidWorkflowAlgorithms/EQSANSDarkCurrentSubtraction.h
	inc/MantidWorkflowAlgorithms/EQSANSDarkCurrentSubtraction2.h
	inc/MantidWorkflowAlgorithms/EQSANSInstrument.h
	inc/MantidWorkflowAlgorithms/EQSANSLoad.h
	inc/MantidWorkflowAlgorithms/EQSANSMonitorTOF.h
	inc/MantidWorkflowAlgorithms/EQSANSPatchSensitivity.h
	inc/MantidWorkflowAlgorithms/EQSANSQ2D.h
	inc/MantidWorkflowAlgorithms/ExtractQENSMembers.h
	inc/MantidWorkflowAlgorithms/HFIRDarkCurrentSubtraction.h
	inc/MantidWorkflowAlgorithms/HFIRInstrument.h
	inc/MantidWorkflowAlgorithms/HFIRLoad.h
	inc/MantidWorkflowAlgorithms/HFIRSANSNormalise.h
	inc/MantidWorkflowAlgorithms/IMuonAsymmetryCalculator.h
Peterson, Peter's avatar
Peterson, Peter committed
	inc/MantidWorkflowAlgorithms/LoadEventAndCompress.h
	inc/MantidWorkflowAlgorithms/MuonGroupAsymmetryCalculator.h
	inc/MantidWorkflowAlgorithms/MuonGroupCalculator.h
	inc/MantidWorkflowAlgorithms/MuonGroupCountsCalculator.h
	inc/MantidWorkflowAlgorithms/MuonProcess.h
	inc/MantidWorkflowAlgorithms/MuonPairAsymmetryCalculator.h
	inc/MantidWorkflowAlgorithms/ProcessIndirectFitParameters.h
	inc/MantidWorkflowAlgorithms/RefRoi.h
	inc/MantidWorkflowAlgorithms/SANSBeamFinder.h
	inc/MantidWorkflowAlgorithms/SANSBeamFluxCorrection.h
	inc/MantidWorkflowAlgorithms/SANSSensitivityCorrection.h
	inc/MantidWorkflowAlgorithms/SANSSolidAngleCorrection.h
	inc/MantidWorkflowAlgorithms/SetupEQSANSReduction.h
  inc/MantidWorkflowAlgorithms/SetupHFIRReduction.h
	inc/MantidWorkflowAlgorithms/StepScan.h
	inc/MantidWorkflowAlgorithms/WorkflowAlgorithmHelpers.h
	ExtractQENSMembersTest.h
	IMuonAsymmetryCalculatorTest.h
Peterson, Peter's avatar
Peterson, Peter committed
	LoadEventAndCompressTest.h
	ProcessIndirectFitParametersTest.h
	SANSSolidAngleCorrectionTest.h
Peterson, Peter's avatar
Peterson, Peter committed
set ( TEST_PY_FILES
  EQSANSQ2DTest.py
  SANSBeamFluxCorrectionTest.py
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()

if(UNITY_BUILD)
  include(UnityBuild)
  enable_unity_build(WorkflowAlgorithms SRC_FILES SRC_UNITY_IGNORE_FILES 10)
endif(UNITY_BUILD)

# Use a precompiled header where they are supported
enable_precompiled_headers( inc/MantidWorkflowAlgorithms/PrecompiledHeader.h SRC_FILES )

# Add the target for this directory
add_library ( WorkflowAlgorithms ${SRC_FILES} ${INC_FILES})
# Set the name of the generated library
set_target_properties ( WorkflowAlgorithms PROPERTIES OUTPUT_NAME MantidWorkflowAlgorithms
)

if (OSX_VERSION VERSION_GREATER 10.8)
  set_target_properties(WorkflowAlgorithms PROPERTIES INSTALL_RPATH "@loader_path/../Contents/MacOS")
elseif ( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
  set_target_properties(WorkflowAlgorithms PROPERTIES INSTALL_RPATH "\$ORIGIN/../${LIB_DIR}")
# Add to the 'Framework' group in VS
set_property ( TARGET WorkflowAlgorithms PROPERTY FOLDER "MantidFramework" )
include_directories ( inc ../Nexus/inc )
target_link_libraries ( WorkflowAlgorithms LINK_PRIVATE ${TCMALLOC_LIBRARIES_LINKTIME} ${MANTIDLIBS} Nexus ${GSL_LIBRARIES} )
# Add the unit tests directory
add_subdirectory ( test )
###########################################################################
# Installation settings
###########################################################################

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