PROJECT(EvaluationFrameworkModules) SET(EXECUTABLE_OUTPUT_PATH ${EvaluationFrameworkModules_BINARY_DIR}/bin) SET(LIBRARY_OUTPUT_PATH ${EvaluationFrameworkModules_BINARY_DIR}/bin) # Find ITK. FIND_PACKAGE(ITK) IF(ITK_FOUND) INCLUDE(${ITK_USE_FILE}) ELSE(ITK_FOUND) MESSAGE(FATAL_ERROR "Cannot build without ITK. Please set ITK_DIR.") ENDIF(ITK_FOUND) OPTION(USE_FFTWD "Use double precision FFTW if found" OFF) INCLUDE ( ${ITK_SOURCE_DIR}/CMake/FindFFTW.cmake ) IF(FFTWD_FOUND) MESSAGE(STATUS "Building with FFTW.") SET( MY_FFTW_SOURCE_FILES ) ELSE(FFTWD_FOUND) MESSAGE(STATUS "Building without FFTW.") SET( MY_FFTW_SOURCE_FILES "" ) ENDIF(FFTWD_FOUND) SET(MY_SOURCE_FILES CTNonlinearRegistrationInterface.cxx CTNonlinearRegistrationBase.cxx CTStandardDemonsRegistration.cxx CTSymmetricDemonsRegistration.cxx CTLevelSetMotionRegistration.cxx CTFastBlockMatchingRegistration.cxx CTDiffeomorphicDemonsRegistration.cxx CTCurvatureRegistration.cxx SmallUtilityMethods.cxx VolumeIOWrapper.cxx RawDataBufferImporter.cxx mlconfig.cpp nonlinearRegistration.cpp ) ADD_EXECUTABLE( nonlinearRegistration ${MY_SOURCE_FILES} ) TARGET_LINK_LIBRARIES( nonlinearRegistration ${FFTWD_LIB} ITKCommon ITKNumerics ITKStatistics ITKIO ) ADD_EXECUTABLE(ApplySimulatedBreathingTransformation ApplySimulatedBreathingTransformation.cxx SimulatedBreathingTransformation.cxx VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(ApplySimulatedBreathingTransformation ITKCommon ITKIO ITKNumerics ITKStatistics) ADD_EXECUTABLE(ApplySimulatedBreathingTransformationWithIntensityVariation ApplySimulatedBreathingTransformationWithIntensityVariation.cxx SimulatedBreathingTransformation.cxx VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(ApplySimulatedBreathingTransformationWithIntensityVariation ITKCommon ITKIO ITKNumerics ITKStatistics) ADD_EXECUTABLE(ApplyDisplacementFieldTransform ApplyDisplacementFieldTransform.cpp VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(ApplyDisplacementFieldTransform ITKCommon ITKIO ITKNumerics ITKStatistics) ADD_EXECUTABLE(ApplySyntheticTPSTransform ApplySyntheticTPSTransform.cxx VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(ApplySyntheticTPSTransform ITKCommon ITKIO ITKNumerics ITKStatistics) ADD_EXECUTABLE(ApplyUniformPeriodicTransform ApplyUniformPeriodicTransform.cxx VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(ApplyUniformPeriodicTransform ITKCommon ITKIO ITKNumerics ITKStatistics) ADD_EXECUTABLE(CompareDisplacementFields CompareDisplacementFields.cxx VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(CompareDisplacementFields ITKCommon ITKIO ITKNumerics ITKStatistics) ADD_EXECUTABLE(CompareWarpedImages CompareWarpedImages.cxx VolumeIOWrapper.cxx SmallUtilityMethods.cxx ) TARGET_LINK_LIBRARIES(CompareWarpedImages ITKCommon ITKIO ITKNumerics ITKStatistics)