|
1 | 1 | cmake_minimum_required(VERSION 3.10.2) |
2 | 2 |
|
3 | | -project( SegmentWithGeodesicActiveContourLevelSet ) |
| 3 | +project(SegmentWithGeodesicActiveContourLevelSet) |
4 | 4 |
|
5 | | -find_package( ITK REQUIRED ) |
6 | | -include( ${ITK_USE_FILE} ) |
| 5 | +find_package(ITK REQUIRED) |
| 6 | +include(${ITK_USE_FILE}) |
7 | 7 |
|
8 | | -add_executable( SegmentWithGeodesicActiveContourLevelSet Code.cxx ) |
9 | | -target_link_libraries( SegmentWithGeodesicActiveContourLevelSet ${ITK_LIBRARIES} ) |
| 8 | +add_executable(SegmentWithGeodesicActiveContourLevelSet Code.cxx) |
| 9 | +target_link_libraries(SegmentWithGeodesicActiveContourLevelSet ${ITK_LIBRARIES}) |
10 | 10 |
|
11 | | -install( TARGETS SegmentWithGeodesicActiveContourLevelSet |
| 11 | +install(TARGETS SegmentWithGeodesicActiveContourLevelSet |
12 | 12 | DESTINATION bin/ITKSphinxExamples/Segmentation/LevelSets |
13 | 13 | COMPONENT Runtime |
14 | 14 | ) |
15 | 15 |
|
16 | | -install( FILES Code.cxx CMakeLists.txt |
| 16 | +install(FILES Code.cxx CMakeLists.txt |
17 | 17 | DESTINATION share/ITKSphinxExamples/Code/Segmentation/LevelSets/SegmentWithGeodesicActiveContourLevelSet |
18 | 18 | COMPONENT Code |
19 | 19 | ) |
20 | 20 |
|
21 | 21 | enable_testing() |
22 | 22 |
|
23 | 23 | add_test(NAME GeodesicActiveContourLeftVentricleTest |
24 | | - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
25 | | - ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
26 | | - Output1.png |
27 | | - 81 114 5.0 1.0 -0.5 3.0 2.0 800 |
| 24 | + COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
| 25 | + ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
| 26 | + Output1.png |
| 27 | + 81 114 5.0 1.0 -0.5 3.0 2.0 800 |
28 | 28 | ) |
29 | 29 |
|
30 | 30 | add_test(NAME GeodesicActiveContourRightVentricleTest |
31 | | - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
32 | | - ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
33 | | - Output2.png |
34 | | - 99 114 5.0 1.0 -0.5 3.0 2.0 800 |
| 31 | + COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
| 32 | + ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
| 33 | + Output2.png |
| 34 | + 99 114 5.0 1.0 -0.5 3.0 2.0 800 |
35 | 35 | ) |
36 | 36 |
|
37 | 37 | add_test(NAME GeodesicActiveContourWhiteMatterTest |
38 | | - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
39 | | - ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
40 | | - Output3.png |
41 | | - 56 92 5.0 1.0 -0.3 2.0 10.0 800 |
| 38 | + COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
| 39 | + ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
| 40 | + Output3.png |
| 41 | + 56 92 5.0 1.0 -0.3 2.0 10.0 800 |
42 | 42 | ) |
43 | 43 |
|
44 | 44 | add_test(NAME GeodesicActiveContourGrayMatterTest |
45 | | - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
46 | | - ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
47 | | - Output4.png |
48 | | - 40 90 5.0 .5 -0.3 2.0 10.0 800 |
| 45 | + COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet |
| 46 | + ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
| 47 | + Output4.png |
| 48 | + 40 90 5.0 .5 -0.3 2.0 10.0 800 |
49 | 49 | ) |
50 | 50 |
|
51 | | -if( ITK_WRAP_PYTHON ) |
| 51 | +if(ITK_WRAP_PYTHON) |
52 | 52 | add_test(NAME GeodesicActiveContourLeftVentricleTestPython |
53 | 53 | COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py |
54 | 54 | ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png |
|
0 commit comments