forked from blezek/ITK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
87 lines (67 loc) · 3.54 KB
/
Copy pathCMakeLists.txt
File metadata and controls
87 lines (67 loc) · 3.54 KB
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
#
# Examples on the use of Iterators.
#
project(IteratorExamples)
include_regular_expression("^.*$")
add_executable(NeighborhoodIterators4 NeighborhoodIterators4.cxx)
target_link_libraries(NeighborhoodIterators4 ${ITK_LIBRARIES})
add_executable(NeighborhoodIterators5 NeighborhoodIterators5.cxx)
target_link_libraries(NeighborhoodIterators5 ${ITK_LIBRARIES})
add_executable(ImageRandomConstIteratorWithIndex ImageRandomConstIteratorWithIndex.cxx)
target_link_libraries(ImageRandomConstIteratorWithIndex ${ITK_LIBRARIES})
add_executable(NeighborhoodIterators1 NeighborhoodIterators1.cxx)
target_link_libraries(NeighborhoodIterators1 ${ITK_LIBRARIES})
add_executable(NeighborhoodIterators2 NeighborhoodIterators2.cxx)
target_link_libraries(NeighborhoodIterators2 ${ITK_LIBRARIES})
add_executable(NeighborhoodIterators3 NeighborhoodIterators3.cxx)
target_link_libraries(NeighborhoodIterators3 ${ITK_LIBRARIES})
add_executable(NeighborhoodIterators6 NeighborhoodIterators6.cxx)
target_link_libraries(NeighborhoodIterators6 ${ITK_LIBRARIES})
add_executable(ImageRegionIteratorWithIndex ImageRegionIteratorWithIndex.cxx)
target_link_libraries(ImageRegionIteratorWithIndex ${ITK_LIBRARIES})
add_executable(ImageRegionIterator ImageRegionIterator.cxx)
target_link_libraries(ImageRegionIterator ${ITK_LIBRARIES})
add_executable(ImageLinearIteratorWithIndex2 ImageLinearIteratorWithIndex2.cxx)
target_link_libraries(ImageLinearIteratorWithIndex2 ${ITK_LIBRARIES})
add_executable(ImageLinearIteratorWithIndex ImageLinearIteratorWithIndex.cxx)
target_link_libraries(ImageLinearIteratorWithIndex ${ITK_LIBRARIES})
add_executable(ImageSliceIteratorWithIndex ImageSliceIteratorWithIndex.cxx)
target_link_libraries(ImageSliceIteratorWithIndex ${ITK_LIBRARIES})
add_executable(ShapedNeighborhoodIterators1 ShapedNeighborhoodIterators1.cxx)
target_link_libraries(ShapedNeighborhoodIterators1 ${ITK_LIBRARIES})
add_executable(ShapedNeighborhoodIterators2 ShapedNeighborhoodIterators2.cxx)
target_link_libraries(ShapedNeighborhoodIterators2 ${ITK_LIBRARIES})
set(BASELINE ${ITK_DATA_ROOT}/Baseline/Iterators)
set(TEMP ${ITK_BINARY_DIR}/Testing/Temporary)
if(BUILD_TESTING)
itk_add_test(NAME ImageLinearIteratorWithIndexTest COMMAND ${ITK_TEST_DRIVER}
--compare ${BASELINE}/ImageLinearIteratorWithIndexTest.png
${TEMP}/ImageLinearIteratorWithIndexTest.png
$<TARGET_FILE:ImageLinearIteratorWithIndex>
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/ImageLinearIteratorWithIndexTest.png
)
itk_add_test(NAME ImageRegionIteratorWithIndexTest COMMAND ${ITK_TEST_DRIVER}
--compare ${BASELINE}/ImageRegionIteratorWithIndexTest.png
${TEMP}/ImageRegionIteratorWithIndexTest.png
$<TARGET_FILE:ImageRegionIteratorWithIndex>
${ITK_SOURCE_DIR}/Examples/Data/VisibleWomanEyeSlice.png
${TEMP}/ImageRegionIteratorWithIndexTest.png
)
itk_add_test(NAME ImageRegionIteratorTest COMMAND ${ITK_TEST_DRIVER}
--compare ${BASELINE}/ImageRegionIteratorTest.png
${TEMP}/ImageRegionIteratorTest.png
$<TARGET_FILE:ImageRegionIterator>
${ITK_SOURCE_DIR}/Examples/Data/FatMRISlice.png
${TEMP}/ImageRegionIteratorTest.png
20 70 210 140
)
itk_add_test(NAME ImageSliceIteratorWithIndexTest COMMAND ${ITK_TEST_DRIVER}
--compare ${BASELINE}/ImageSliceIteratorWithIndexTest.mha
${TEMP}/ImageSliceIteratorWithIndexTest.mha
$<TARGET_FILE:ImageSliceIteratorWithIndex>
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensity3Slices.mha
${TEMP}/ImageSliceIteratorWithIndexTest.mha
2
)
endif(BUILD_TESTING)