diff --git a/src/External/CMakeLists.txt b/src/External/CMakeLists.txt index 8b1378917..4917e752c 100644 --- a/src/External/CMakeLists.txt +++ b/src/External/CMakeLists.txt @@ -1 +1,2 @@ - +# No examples in this category yet; this file exists because +# src/CMakeLists.txt calls add_subdirectory(External). diff --git a/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt index 62596ffa7..cb6bb5ba2 100644 --- a/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt +++ b/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt @@ -2,7 +2,12 @@ cmake_minimum_required(VERSION 3.22.1) set(input_image ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png) set(output_image Output.png) -set(test_options 5 0.125 3.0) +set( + test_options + 5 + 0.125 + 3.0 +) project(ComputeCurvatureAnisotropicDiffusion) @@ -10,37 +15,45 @@ find_package(ITK REQUIRED) itk_generate_factory_registration() add_executable(${PROJECT_NAME} Code.cxx) -target_link_libraries(${PROJECT_NAME} +target_link_libraries( + ${PROJECT_NAME} PRIVATE ITK::ITKImageIO ITK::ITKAnisotropicSmoothingModule ITK::ITKImageIntensityModule ) -install(TARGETS ${PROJECT_NAME} +install( + TARGETS + ${PROJECT_NAME} DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing COMPONENT Runtime - ) +) -install(FILES Code.cxx CMakeLists.txt Code.py - DESTINATION share/ITKSphinxExamples/Code/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion +install( + FILES + Code.cxx + CMakeLists.txt + Code.py + DESTINATION + share/ITKSphinxExamples/Code/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion COMPONENT Code ) enable_testing() -add_test(NAME ComputeCurvatureAnisotropicDiffusionTest - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} - ${input_image} - ${output_image} - ${test_options} +add_test( + NAME ComputeCurvatureAnisotropicDiffusionTest + COMMAND + ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} ${input_image} + ${output_image} ${test_options} ) if(ITK_WRAP_PYTHON) string(REPLACE . "Python." output_image "${output_image}") - add_test(NAME ComputeCurvatureAnisotropicDiffusionTestPython - COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py - ${input_image} - ${output_image} - ${test_options} - ) + add_test( + NAME ComputeCurvatureAnisotropicDiffusionTestPython + COMMAND + ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Code.py ${input_image} + ${output_image} ${test_options} + ) endif() diff --git a/src/GPU/CMakeLists.txt b/src/GPU/CMakeLists.txt index 8b1378917..23f313c2a 100644 --- a/src/GPU/CMakeLists.txt +++ b/src/GPU/CMakeLists.txt @@ -1 +1,2 @@ - +# No examples in this category yet; this file exists because +# src/CMakeLists.txt calls add_subdirectory(GPU).