-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
79 lines (65 loc) · 2.62 KB
/
CMakeLists.txt
File metadata and controls
79 lines (65 loc) · 2.62 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
cmake_minimum_required(VERSION 3.10.2)
project(SegmentWithGeodesicActiveContourLevelSet)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
add_executable(SegmentWithGeodesicActiveContourLevelSet Code.cxx)
target_link_libraries(SegmentWithGeodesicActiveContourLevelSet ${ITK_LIBRARIES})
install(TARGETS SegmentWithGeodesicActiveContourLevelSet
DESTINATION bin/ITKSphinxExamples/Segmentation/LevelSets
COMPONENT Runtime
)
install(FILES Code.cxx CMakeLists.txt Code.py
DESTINATION share/ITKSphinxExamples/Code/Segmentation/LevelSets/SegmentWithGeodesicActiveContourLevelSet
COMPONENT Code
)
enable_testing()
add_test(NAME GeodesicActiveContourLeftVentricleTest
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output1.png
81 114 5.0 1.0 -0.5 3.0 2.0 800
)
add_test(NAME GeodesicActiveContourRightVentricleTest
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output2.png
99 114 5.0 1.0 -0.5 3.0 2.0 800
)
add_test(NAME GeodesicActiveContourWhiteMatterTest
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output3.png
56 92 5.0 1.0 -0.3 2.0 10.0 800
)
add_test(NAME GeodesicActiveContourGrayMatterTest
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output4.png
40 90 5.0 .5 -0.3 2.0 10.0 800
)
if(ITK_WRAP_PYTHON)
add_test(NAME GeodesicActiveContourLeftVentricleTestPython
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output1Python.png
81 114 5.0 1.0 -0.5 3.0 2.0 800
)
add_test(NAME GeodesicActiveContourRightVentricleTestPython
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output2Python.png
99 114 5.0 1.0 -0.5 3.0 2.0 800
)
add_test(NAME GeodesicActiveContourWhiteMatterTestPython
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output3Python.png
56 92 5.0 1.0 -0.3 2.0 10.0 800
)
add_test(NAME GeodesicActiveContourGrayMatterTestPython
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Output4Python.png
40 90 5.0 .5 -0.3 2.0 10.0 800
)
endif()