-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
88 lines (68 loc) · 2.59 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
project( FMM )
cmake_minimum_required(VERSION 2.8)
find_package( ITK REQUIRED )
if( ${ITK_FOUND} )
include( ${ITK_USE_FILE} )
endif()
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY
${FMM_BINARY_DIR}/bin
)
set( EXECUTABLE_OUTPUT_PATH
${FMM_BINARY_DIR}/bin
)
set( DATA_DIRECTORY
${FMM_SOURCE_DIR}/Data
)
set( CODE_DIRECTORY
${FMM_SOURCE_DIR}/Code
)
set( CTEST_CUSTOM_COVERAGE_EXCLUDE
${CTEST_CUSTOM_COVERAGE_EXCLUDE}
"${FMM_SOURCE_DIR}/Testing/*"
)
set( BASE_SOURCE
${FMM_SOURCE_DIR}/Code/itkStoppingCriterionBase.cxx
${FMM_SOURCE_DIR}/Code/itkIterateNeighborhoodOptimizer.cxx
${FMM_SOURCE_DIR}/Code/itkArrivalFunctionToPathFilter.h
${FMM_SOURCE_DIR}/Code/itkArrivalFunctionToPathFilter.txx
${FMM_SOURCE_DIR}/Code/itkFastMarchingBase.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingBase.txx
${FMM_SOURCE_DIR}/Code/itkFastMarchingExtensionImageFilterBase.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingExtensionImageFilterBase.txx
${FMM_SOURCE_DIR}/Code/itkFastMarchingImageFilterBase.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingImageFilterBase.txx
${FMM_SOURCE_DIR}/Code/itkFastMarchingReachedTargetNodesStoppingCriterion.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingStoppingCriterionBase.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingThresholdStoppingCriterion.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingTraits.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingUpwindGradientImageFilterBase.h
${FMM_SOURCE_DIR}/Code/itkFastMarchingUpwindGradientImageFilterBase.txx
${FMM_SOURCE_DIR}/Code/itkPhysicalCentralDifferenceImageFunction.h
${FMM_SOURCE_DIR}/Code/itkPhysicalCentralDifferenceImageFunction.txx
${FMM_SOURCE_DIR}/Code/itkSingleImageCostFunction.h
${FMM_SOURCE_DIR}/Code/itkSingleImageCostFunction.txx
${FMM_SOURCE_DIR}/Code/itkSpeedFunctionToPathFilter.h
${FMM_SOURCE_DIR}/Code/itkSpeedFunctionToPathFilter.txx
${FMM_SOURCE_DIR}/Code/itkFastMarchingQuadEdgeMeshFilterBase.h
)
include_directories( Code )
option( BUILD_DOCUMENTATION "build doxygen doc" OFF )
if( BUILD_DOCUMENTATION )
find_package( Doxygen )
configure_file( ${FMM_SOURCE_DIR}/doxygen.config.in
${FMM_BINARY_DIR}/doxygen.config)
add_custom_target(Documentation ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${FMM_BINARY_DIR}/doxygen.config
MAIN_DEPENDENCY ${FMM_BINARY_DIR}/doxygen.config
WORKING_DIRECTORY ${FMM_BINARY_DIR}/
)
endif()
include( CTest )
add_subdirectory( Testing )
#The following lines are required to use Dart
INCLUDE(Dart)
FIND_PROGRAM(IMAGE_COMPARE ImageCompare)
if( BUILD_TESTING )
set(BUILDNAME "${BUILDNAME}" CACHE STRING "Name of the build on the dashboard" )
endif()
SET(TESTING_PATH ${FMM_SOURCE_DIR}/Testing)