Skip to content

Commit

Permalink
STYLE: GeodesicActiveContour CMake style
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed May 18, 2021
1 parent 7cf83b2 commit c09befc
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
cmake_minimum_required(VERSION 3.10.2)

project( SegmentWithGeodesicActiveContourLevelSet )
project(SegmentWithGeodesicActiveContourLevelSet)

find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

add_executable( SegmentWithGeodesicActiveContourLevelSet Code.cxx )
target_link_libraries( SegmentWithGeodesicActiveContourLevelSet ${ITK_LIBRARIES} )
add_executable(SegmentWithGeodesicActiveContourLevelSet Code.cxx)
target_link_libraries(SegmentWithGeodesicActiveContourLevelSet ${ITK_LIBRARIES})

install( TARGETS SegmentWithGeodesicActiveContourLevelSet
install(TARGETS SegmentWithGeodesicActiveContourLevelSet
DESTINATION bin/ITKSphinxExamples/Segmentation/LevelSets
COMPONENT Runtime
)

install( FILES Code.cxx CMakeLists.txt
install(FILES Code.cxx CMakeLists.txt
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
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
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
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
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 )
if(ITK_WRAP_PYTHON)
add_test(NAME GeodesicActiveContourLeftVentricleTestPython
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py
${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
Expand Down

0 comments on commit c09befc

Please sign in to comment.