From b018c2bc1fe530464627cb9988dbec14704bccc8 Mon Sep 17 00:00:00 2001
From: Niels Dekker <N.Dekker@lumc.nl>
Date: Tue, 24 May 2022 17:07:49 +0200
Subject: [PATCH] STYLE: Use `${PROJECT_NAME}` as CMake target name of example
 projects

Replaced `add_executable\(\S+` with `add_executable\(\${PROJECT_NAME}`,
`target_link_libraries\(\S+` with `target_link_libraries\${PROJECT_NAME}`,
`install\(TARGETS \S+` with `install\(TARGETS \${PROJECT_NAME}`, and
`COMMAND \${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\S+` with
`COMMAND \${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\${PROJECT_NAME}`, using
Notepad++ v8.3.3, Find in Files (Regular expression, Filters: `CMake*.txt`).

This makes the convention of using the project name as target name more explicit.
---
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../VtkGlue/VTKImageToITKImage/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../AddNoiseToBinaryImage/CMakeLists.txt       |  8 ++++----
 .../Common/AddOffsetToIndex/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../BoundingBoxOfAPointSet/CMakeLists.txt      |  8 ++++----
 src/Core/Common/BresenhamLine/CMakeLists.txt   |  8 ++++----
 .../BuildAHelloWorldProgram/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CheckIfModuleIsPresent/CMakeLists.txt      |  8 ++++----
 .../ComputeTimeBetweenPoints/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ConceptCheckingIsSameType/CMakeLists.txt   |  8 ++++----
 .../Common/ConvertArrayToImage/CMakeLists.txt  |  8 ++++----
 .../CovariantVectorDotProduct/CMakeLists.txt   |  8 ++++----
 .../Common/CovariantVectorNorm/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CreateACovariantVector/CMakeLists.txt      |  8 ++++----
 .../Common/CreateAFixedArray/CMakeLists.txt    |  8 ++++----
 src/Core/Common/CreateAIndex/CMakeLists.txt    |  8 ++++----
 src/Core/Common/CreateAPointSet/CMakeLists.txt |  8 ++++----
 src/Core/Common/CreateASize/CMakeLists.txt     |  8 ++++----
 src/Core/Common/CreateAVector/CMakeLists.txt   |  8 ++++----
 src/Core/Common/CreateAnImage/CMakeLists.txt   |  8 ++++----
 .../CreateAnImageOfVectors/CMakeLists.txt      |  8 ++++----
 .../Common/CreateAnImageRegion/CMakeLists.txt  |  8 ++++----
 .../Common/CreateAnRGBImage/CMakeLists.txt     |  8 ++++----
 src/Core/Common/CreateAnother/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CreateDerivativeKernel/CMakeLists.txt      |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Common/CreateGaussianKernel/CMakeLists.txt |  8 ++++----
 .../CreateLaplacianKernel/CMakeLists.txt       |  8 ++++----
 .../Common/CreateSobelKernel/CMakeLists.txt    |  8 ++++----
 .../Common/CreateVectorImage/CMakeLists.txt    |  8 ++++----
 .../CropImageBySpecifyingRegion/CMakeLists.txt |  8 ++++----
 src/Core/Common/DeepCopyImage/CMakeLists.txt   |  8 ++++----
 .../DemonstrateAllOperators/CMakeLists.txt     |  8 ++++----
 .../Common/DirectWarningToFile/CMakeLists.txt  |  8 ++++----
 src/Core/Common/DisplayImage/CMakeLists.txt    | 12 ++++++------
 .../DistanceBetweenIndices/CMakeLists.txt      |  8 ++++----
 .../DistanceBetweenPoints/CMakeLists.txt       |  8 ++++----
 .../DoDataParallelThreading/CMakeLists.txt     |  8 ++++----
 .../Common/DuplicateAnImage/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/Core/Common/FilterImage/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../FilterImageWithoutCopying/CMakeLists.txt   |  8 ++++----
 .../Common/FindMaxAndMinInImage/CMakeLists.txt |  8 ++++----
 src/Core/Common/GetImageSize/CMakeLists.txt    |  8 ++++----
 src/Core/Common/GetNameOfClass/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../GetTypeBasicInformation/CMakeLists.txt     |  8 ++++----
 .../ImageRegionIntersection/CMakeLists.txt     |  8 ++++----
 .../Common/ImageRegionOverlap/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Common/InPlaceFilterOfImage/CMakeLists.txt |  8 ++++----
 .../Common/IsPixelInsideRegion/CMakeLists.txt  |  8 ++++----
 .../IterateImageStartingAtSeed/CMakeLists.txt  |  8 ++++----
 .../IterateLineThroughImage/CMakeLists.txt     | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../IterateOnAVectorContainer/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../IterateOverSpecificRegion/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../MakePartOfImageTransparent/CMakeLists.txt  |  8 ++++----
 src/Core/Common/Matrix/CMakeLists.txt          |  8 ++++----
 src/Core/Common/MatrixInverse/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/Core/Common/MiniPipeline/CMakeLists.txt    |  8 ++++----
 .../MultiThreadOilPainting/CMakeLists.txt      | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../MultipleInputsOfSameType/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../MultipleOutputsOfSameType/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/Core/Common/ObserveAnEvent/CMakeLists.txt  |  8 ++++----
 .../Common/PassImageToFunction/CMakeLists.txt  |  8 ++++----
 .../PermuteSequenceOfIndices/CMakeLists.txt    |  8 ++++----
 src/Core/Common/PiConstant/CMakeLists.txt      |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/Core/Common/ReadAPointSet/CMakeLists.txt   |  8 ++++----
 .../Common/ReadWriteVectorImage/CMakeLists.txt |  8 ++++----
 .../ReturnObjectFromFunction/CMakeLists.txt    |  8 ++++----
 .../SetDefaultNumberOfThreads/CMakeLists.txt   |  8 ++++----
 .../SetPixelValueInOneImage/CMakeLists.txt     |  8 ++++----
 src/Core/Common/SortITKIndex/CMakeLists.txt    |  8 ++++----
 .../StoreNonPixelDataInImage/CMakeLists.txt    |  8 ++++----
 src/Core/Common/StreamAPipeline/CMakeLists.txt |  8 ++++----
 src/Core/Common/ThrowException/CMakeLists.txt  |  8 ++++----
 .../TraceMemoryBetweenPoints/CMakeLists.txt    |  8 ++++----
 .../Common/TryCatchException/CMakeLists.txt    |  8 ++++----
 .../UseParallelizeImageRegion/CMakeLists.txt   |  8 ++++----
 .../Common/VariableLengthVector/CMakeLists.txt |  8 ++++----
 .../Common/VectorDotProduct/CMakeLists.txt     |  8 ++++----
 src/Core/Common/WatchAFilter/CMakeLists.txt    |  8 ++++----
 src/Core/Common/WriteAPointSet/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../PresentImageAfterOperation/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ComputeMedianOfImageAtPixel/CMakeLists.txt |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ResampleSegmentedImage/CMakeLists.txt      |  8 ++++----
 src/Core/Mesh/AccessDataInCells/CMakeLists.txt |  8 ++++----
 src/Core/Mesh/AddPointsAndEdges/CMakeLists.txt |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/Core/Mesh/ExtractIsoSurface/CMakeLists.txt |  8 ++++----
 src/Core/Mesh/TranslateOneMesh/CMakeLists.txt  |  8 ++++----
 .../WorkingWithPointAndCellData/CMakeLists.txt |  8 ++++----
 src/Core/Mesh/WriteMeshToVTP/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/Core/QuadEdgeMesh/CutMesh/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../PrintVertexNeighbors/CMakeLists.txt        |  8 ++++----
 src/Core/SpatialObjects/Blob/CMakeLists.txt    |  8 ++++----
 .../ContourSpatialObject/CMakeLists.txt        | 12 ++++++------
 .../ConvertSpatialObjectToImage/CMakeLists.txt |  8 ++++----
 .../CreateALineSpatialObject/CMakeLists.txt    |  8 ++++----
 src/Core/SpatialObjects/Ellipse/CMakeLists.txt |  8 ++++----
 .../GenerateRandomImage/CMakeLists.txt         |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CartesianToAzimuthElevation/CMakeLists.txt |  8 ++++----
 .../CopyACompositeTransform/CMakeLists.txt     |  8 ++++----
 .../CopyANonCompositeTransform/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../MutualInformationAffine/CMakeLists.txt     |  8 ++++----
 src/Core/Transform/ScaleAnImage/CMakeLists.txt |  8 ++++----
 .../TranslateAVectorImage/CMakeLists.txt       |  8 ++++----
 .../Transform/TranslateImage/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ComputeCurvatureFlow/CMakeLists.txt        |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../ClosingBinaryImage/CMakeLists.txt          | 12 ++++++------
 .../DilateABinaryImage/CMakeLists.txt          |  8 ++++----
 .../ErodeABinaryImage/CMakeLists.txt           |  8 ++++----
 .../OpeningBinaryImage/CMakeLists.txt          | 12 ++++++------
 .../PruneBinaryImage/CMakeLists.txt            | 12 ++++++------
 .../ThinImage/CMakeLists.txt                   |  8 ++++----
 .../ApplyAColormapToAnImage/CMakeLists.txt     |  8 ++++----
 .../CreateACustomColormap/CMakeLists.txt       |  8 ++++----
 .../MapScalarsIntoJetColormap/CMakeLists.txt   |  8 ++++----
 .../ColorNormalizedCorrelation/CMakeLists.txt  |  8 ++++----
 .../ConvolveImageWithKernel/CMakeLists.txt     | 12 ++++++------
 .../NormalizedCorrelation/CMakeLists.txt       |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../BinaryMinMaxCurvatureFlow/CMakeLists.txt   | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../ApproxDistanceMapOfBinary/CMakeLists.txt   | 12 ++++++------
 .../MaurerDistanceMapOfBinary/CMakeLists.txt   | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../SignedDistanceMapOfBinary/CMakeLists.txt   | 12 ++++++------
 .../FFT/ComputeForwardFFT/CMakeLists.txt       |  8 ++++----
 .../ComputeImageSpectralDensity/CMakeLists.txt |  8 ++++----
 .../ComputeInverseFFTOfImage/CMakeLists.txt    |  8 ++++----
 .../FilterImageInFourierDomain/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CreateDistanceMapFromSeeds/CMakeLists.txt  |  8 ++++----
 .../AbsValueOfTwoImages/CMakeLists.txt         |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ImageCompose/JoinImages/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../BilateralFilterAnImage/CMakeLists.txt      | 12 ++++++------
 .../ComputeLaplacian/CMakeLists.txt            |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ExtractContoursFromImage/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../SegmentBloodVessels/CMakeLists.txt         |  8 ++++----
 .../ImageFeature/SharpenImage/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ZeroCrossingBasedEdgeDecor/CMakeLists.txt  | 12 ++++++------
 .../ApplyKernelToEveryPixel/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CastAnImageToAnotherType/CMakeLists.txt    |  8 ++++----
 .../ComputeLocalNoise/CMakeLists.txt           |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ColorBoundariesOfRegions/CMakeLists.txt    |  8 ++++----
 .../ColorLabeledRegions/CMakeLists.txt         |  8 ++++----
 .../OverlayLabelMapOnImage/CMakeLists.txt      |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ComputeAndDisplayGradient/CMakeLists.txt   |  8 ++++----
 .../ComputeGradientMagnitude/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../GradientOfVectorImage/CMakeLists.txt       |  8 ++++----
 .../ImplementationOfSnakes/CMakeLists.txt      |  8 ++++----
 .../AppendTwo3DVolumes/CMakeLists.txt          |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ImageGrid/Create3DVolume/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../FitSplineIntoPointSet/CMakeLists.txt       |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../PadAnImageByMirroring/CMakeLists.txt       |  8 ++++----
 .../PadAnImageWithAConstant/CMakeLists.txt     |  8 ++++----
 .../PadImageByWrapping/CMakeLists.txt          |  8 ++++----
 .../PasteImageIntoAnotherOne/CMakeLists.txt    |  8 ++++----
 .../PermuteAxesOfAnImage/CMakeLists.txt        |  8 ++++----
 .../ProcessA2DSliceOfA3DImage/CMakeLists.txt   |  8 ++++----
 .../ResampleAScalarImage/CMakeLists.txt        |  8 ++++----
 .../ResampleAVectorImage/CMakeLists.txt        |  8 ++++----
 .../ImageGrid/ResampleAnImage/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../ImageGrid/ShrinkImage/CMakeLists.txt       |  8 ++++----
 .../Stack2DImagesInto3DImage/CMakeLists.txt    |  8 ++++----
 .../TileImagesSideBySide/CMakeLists.txt        |  8 ++++----
 .../ImageGrid/UpsampleAnImage/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../AbsValueOfImage/CMakeLists.txt             | 12 ++++++------
 .../AddConstantToEveryPixel/CMakeLists.txt     |  8 ++++----
 .../ImageIntensity/AddTwoImages/CMakeLists.txt |  8 ++++----
 .../ApplyAtanImageFilter/CMakeLists.txt        |  8 ++++----
 .../ApplyCosImageFilter/CMakeLists.txt         |  8 ++++----
 .../ApplyExpNegativeImageFilter/CMakeLists.txt |  8 ++++----
 .../ApplySinImageFilter/CMakeLists.txt         |  8 ++++----
 .../BinaryANDTwoImages/CMakeLists.txt          |  8 ++++----
 .../BinaryORTwoImages/CMakeLists.txt           |  8 ++++----
 .../BinaryXORTwoImages/CMakeLists.txt          |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ComputeEdgePotential/CMakeLists.txt        |  8 ++++----
 .../ComputeSigmoid/CMakeLists.txt              |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../IntensityWindowing/CMakeLists.txt          |  8 ++++----
 .../InverseOfMaskToImage/CMakeLists.txt        |  8 ++++----
 .../ImageIntensity/InvertImage/CMakeLists.txt  | 12 ++++++------
 .../ImageIntensity/MaskImage/CMakeLists.txt    | 12 ++++++------
 .../MultiplyImageByScalar/CMakeLists.txt       |  8 ++++----
 .../MultiplyTwoImages/CMakeLists.txt           |  8 ++++----
 .../NormalizeImage/CMakeLists.txt              | 12 ++++++------
 .../PixelDivisionOfTwoImages/CMakeLists.txt    |  8 ++++----
 .../RescaleIntensity/CMakeLists.txt            |  8 ++++----
 .../ScalePixelSumToConstant/CMakeLists.txt     |  8 ++++----
 .../SquareEveryPixel/CMakeLists.txt            |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../SubtractTwoImages/CMakeLists.txt           |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 18 +++++++++---------
 .../ApplyAccumulateImageFilter/CMakeLists.txt  |  8 ++++----
 .../CalculateImageMoments/CMakeLists.txt       |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ComputePCAShapeFromSample/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ConvertImageToLabelMap/CMakeLists.txt      |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ConvertLabelMapToImage/CMakeLists.txt      |  8 ++++----
 .../ExtractGivenLabelObject/CMakeLists.txt     |  8 ++++----
 .../InvertImageUsingBinaryNot/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../KeepRegionsAboveLevel/CMakeLists.txt       |  8 ++++----
 .../KeepRegionsThatMeetSpecific/CMakeLists.txt |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../LabelBinaryRegionsInImage/CMakeLists.txt   |  8 ++++----
 .../MaskOneImageGivenLabelMap/CMakeLists.txt   | 10 +++++-----
 .../LabelMap/MergeLabelMaps/CMakeLists.txt     |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../RemoveLabelsFromLabelMap/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../DilateAGrayscaleImage/CMakeLists.txt       |  8 ++++----
 .../ErodeAGrayscaleImage/CMakeLists.txt        |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../RegionalMaximal/CMakeLists.txt             |  8 ++++----
 .../RegionalMinimal/CMakeLists.txt             |  8 ++++----
 .../ValuedRegionalMaximaImage/CMakeLists.txt   |  8 ++++----
 .../ValuedRegionalMinimalImage/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ExtractContoursFromImage/CMakeLists.txt    |  8 ++++----
 .../CleanQuadEdgeMesh/CMakeLists.txt           |  8 ++++----
 .../ComputeNormalsOfAMesh/CMakeLists.txt       |  8 ++++----
 .../CMakeLists.txt                             |  6 +++---
 .../DelaunayConformEdgeFlipping/CMakeLists.txt |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../MeanFilteringOfAnImage/CMakeLists.txt      |  8 ++++----
 .../MedianFilteringOfAnImage/CMakeLists.txt    |  8 ++++----
 .../MedianFilteringOfAnRGBImage/CMakeLists.txt |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../SeparateGroundUsingOtsu/CMakeLists.txt     | 12 ++++++------
 .../ThresholdAnImage/CMakeLists.txt            |  8 ++++----
 .../ThresholdAnImageUsingBinary/CMakeLists.txt |  8 ++++----
 .../ThresholdAnImageUsingOtsu/CMakeLists.txt   |  8 ++++----
 .../GDCM/ReadAndPrintDICOMTags/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 src/IO/GDCM/ResampleDICOMSeries/CMakeLists.txt |  8 ++++----
 .../ConvertFileFormats/CMakeLists.txt          |  8 ++++----
 .../ConvertImageToAnotherType/CMakeLists.txt   |  8 ++++----
 .../Create3DFromSeriesOf2D/CMakeLists.txt      |  8 ++++----
 .../CreateAListOfFileNames/CMakeLists.txt      |  8 ++++----
 .../GenerateSlicesFromVolume/CMakeLists.txt    |  8 ++++----
 .../ProcessImageChunks/CMakeLists.txt          |  8 ++++----
 src/IO/ImageBase/ReadAnImage/CMakeLists.txt    |  8 ++++----
 .../ReadUnknownImageType/CMakeLists.txt        | 10 +++++-----
 .../RegisterIOFactories/CMakeLists.txt         |  8 ++++----
 src/IO/ImageBase/WriteAnImage/CMakeLists.txt   |  8 ++++----
 src/IO/Mesh/ReadMesh/CMakeLists.txt            |  8 ++++----
 src/IO/TIFF/WriteATIFFImage/CMakeLists.txt     |  8 ++++----
 .../ReadTransformFromFile/CMakeLists.txt       |  8 ++++----
 .../WriteTransformToFile/CMakeLists.txt        |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../GeometricPropertiesOfRegion/CMakeLists.txt | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Optimizers/AmoebaOptimizer/CMakeLists.txt  |  8 ++++----
 .../ExhaustiveOptimizer/CMakeLists.txt         |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../ComputeTextureFeatures/CMakeLists.txt      |  8 ++++----
 .../CreateGaussianDistribution/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CreateListOfSamplesWithIDs/CMakeLists.txt  |  8 ++++----
 .../DistributeSamplingUsingGMM/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Statistics/SpatialSearch/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Common/MatchFeaturePoints/CMakeLists.txt   |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Common/MutualInformation/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../Common/WatchRegistration/CMakeLists.txt    |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../RegisterTwoPointSets/CMakeLists.txt        |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../DisplayITKImage/CMakeLists.txt             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../KMeansClustering/CMakeLists.txt            |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             | 12 ++++++------
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../BasicRegionGrowing/CMakeLists.txt          |  8 ++++----
 .../IterativeHoleFilling/CMakeLists.txt        |  8 ++++----
 .../CMakeLists.txt                             | 14 +++++++-------
 .../ConnectedComponentsInImage/CMakeLists.txt  |  8 ++++----
 .../CMakeLists.txt                             | 12 ++++++------
 .../Voronoi/VoronoiDiagram/CMakeLists.txt      |  8 ++++----
 .../CMakeLists.txt                             |  8 ++++----
 .../CMakeLists.txt                             | 16 ++++++++--------
 .../CMakeLists.txt                             |  8 ++++----
 409 files changed, 1739 insertions(+), 1739 deletions(-)

diff --git a/src/Bridge/VtkGlue/ConvertAnRGBitkImageTovtkImageData/CMakeLists.txt b/src/Bridge/VtkGlue/ConvertAnRGBitkImageTovtkImageData/CMakeLists.txt
index 90eb5f2e2..ad34b0af4 100644
--- a/src/Bridge/VtkGlue/ConvertAnRGBitkImageTovtkImageData/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/ConvertAnRGBitkImageTovtkImageData/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertAnRGBitkImageTovtkImageData Code.cxx)
-target_link_libraries(ConvertAnRGBitkImageTovtkImageData ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertAnRGBitkImageTovtkImageData
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -25,6 +25,6 @@ enable_testing()
 set(input_image ${CMAKE_CURRENT_BINARY_DIR}/VisibleWomanEyeSlice.png)
 
 add_test(NAME ConvertAnRGBitkImageTovtkImageDataTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertAnRGBitkImageTovtkImageData
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   )
diff --git a/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/CMakeLists.txt b/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/CMakeLists.txt
index b2d13fa4d..a2973828b 100644
--- a/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertAnitkImageTovtkImageData Code.cxx)
-target_link_libraries(ConvertAnitkImageTovtkImageData ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertAnitkImageTovtkImageData
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -25,6 +25,6 @@ enable_testing()
 set(input_image ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png)
 
 add_test(NAME ConvertAnitkImageTovtkImageDataTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertAnitkImageTovtkImageData
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
   )
diff --git a/src/Bridge/VtkGlue/ConvertRGBvtkImageDataToAnitkImage/CMakeLists.txt b/src/Bridge/VtkGlue/ConvertRGBvtkImageDataToAnitkImage/CMakeLists.txt
index 5938d92af..6f79c0aaf 100644
--- a/src/Bridge/VtkGlue/ConvertRGBvtkImageDataToAnitkImage/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/ConvertRGBvtkImageDataToAnitkImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertRGBvtkImageDataToAnitkImage Code.cxx)
-target_link_libraries(ConvertRGBvtkImageDataToAnitkImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertRGBvtkImageDataToAnitkImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -25,6 +25,6 @@ enable_testing()
 set(input_image ${CMAKE_CURRENT_BINARY_DIR}/VisibleWomanEyeSlice.png)
 
 add_test(NAME ConvertRGBvtkImageDataToAnitkImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertRGBvtkImageDataToAnitkImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
   )
diff --git a/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/CMakeLists.txt b/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/CMakeLists.txt
index ef9e139a0..4986eaee0 100644
--- a/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/ConvertvtkImageDataToAnitkImage/CMakeLists.txt
@@ -14,8 +14,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(ConvertvtkImageDataToAnitkImage Code.cxx)
-target_link_libraries(ConvertvtkImageDataToAnitkImage
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME}
   ${ITK_LIBRARIES}
   ${VTK_LIBRARIES}
   )
@@ -27,7 +27,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS ConvertvtkImageDataToAnitkImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -43,6 +43,6 @@ enable_testing()
 set(input_image ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png)
 
 add_test(NAME ConvertvtkImageDataToAnitkImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertvtkImageDataToAnitkImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
   )
diff --git a/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt b/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt
index 5685e565f..b891017bf 100644
--- a/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VTKImageToITKImage/CMakeLists.txt
@@ -21,8 +21,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(VTKImageToITKImage Code.cxx)
-target_link_libraries(VTKImageToITKImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -31,7 +31,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS VTKImageToITKImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VTKImageToITKImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VTKImageToITKImage Gourds.png)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} Gourds.png)
 
diff --git a/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap/CMakeLists.txt
index 1bb9bd0f1..d16cae9b2 100644
--- a/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetAsElevationMap/CMakeLists.txt
@@ -5,10 +5,10 @@ project(VisualizeEvolvingDense2DLevelSetAsElevationMap)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(VisualizeEvolvingDense2DLevelSetAsElevationMap Code.cxx)
-target_link_libraries(VisualizeEvolvingDense2DLevelSetAsElevationMap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS VisualizeEvolvingDense2DLevelSetAsElevationMap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeEvolvingDense2DLevelSetAsElevationMapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeEvolvingDense2DLevelSetAsElevationMap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     100
   )
diff --git a/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet/CMakeLists.txt
index ad236491b..4ea838419 100644
--- a/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeEvolvingDense2DLevelSetZeroSet/CMakeLists.txt
@@ -5,10 +5,10 @@ project(VisualizeEvolvingDense2DLevelSetZeroSet)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(VisualizeEvolvingDense2DLevelSetZeroSet Code.cxx)
-target_link_libraries(VisualizeEvolvingDense2DLevelSetZeroSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS VisualizeEvolvingDense2DLevelSetZeroSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeEvolvingDense2DLevelSetZeroSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeEvolvingDense2DLevelSetZeroSet
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     100
   )
diff --git a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt
index ccb4941b4..47f45b916 100644
--- a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetAsElevationMap/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(VisualizeStaticDense2DLevelSetAsElevationMap Code.cxx)
-target_link_libraries(VisualizeStaticDense2DLevelSetAsElevationMap ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS VisualizeStaticDense2DLevelSetAsElevationMap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -42,7 +42,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeStaticDense2DLevelSetAsElevationMapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticDense2DLevelSetAsElevationMap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     0
   )
diff --git a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt
index 0ada7230b..81e3007d5 100644
--- a/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeStaticDense2DLevelSetZeroSet/CMakeLists.txt
@@ -19,8 +19,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(VisualizeStaticDense2DLevelSetZeroSet Code.cxx)
-target_link_libraries(VisualizeStaticDense2DLevelSetZeroSet ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -29,7 +29,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS VisualizeStaticDense2DLevelSetZeroSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -41,7 +41,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeStaticDense2DLevelSetZeroSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticDense2DLevelSetZeroSet
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     0
   )
diff --git a/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt
index c1c68ff24..7a700ae03 100644
--- a/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeStaticMalcolm2DLevelSetLayers/CMakeLists.txt
@@ -19,8 +19,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(VisualizeStaticMalcolm2DLevelSetLayers Code.cxx)
-target_link_libraries(VisualizeStaticMalcolm2DLevelSetLayers ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -29,7 +29,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS VisualizeStaticMalcolm2DLevelSetLayers
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -41,7 +41,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeStaticMalcolm2DLevelSetLayersTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticMalcolm2DLevelSetLayers
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     0
   )
diff --git a/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt
index 0f63bd19c..e4669ee2a 100644
--- a/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeStaticShi2DLevelSetLayers/CMakeLists.txt
@@ -19,8 +19,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(VisualizeStaticShi2DLevelSetLayers Code.cxx)
-target_link_libraries(VisualizeStaticShi2DLevelSetLayers ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -29,7 +29,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS VisualizeStaticShi2DLevelSetLayers
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -41,7 +41,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeStaticShi2DLevelSetLayersTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticShi2DLevelSetLayers
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     0
   )
diff --git a/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt b/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt
index d1edad290..3a150c6bf 100644
--- a/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt
+++ b/src/Bridge/VtkGlue/VisualizeStaticWhitaker2DLevelSetLayers/CMakeLists.txt
@@ -19,8 +19,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(VisualizeStaticWhitaker2DLevelSetLayers Code.cxx)
-target_link_libraries(VisualizeStaticWhitaker2DLevelSetLayers ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -29,7 +29,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS VisualizeStaticWhitaker2DLevelSetLayers
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Bridge/VtkGlue
   COMPONENT Runtime
   )
@@ -41,7 +41,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VisualizeStaticWhitaker2DLevelSetLayersTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VisualizeStaticWhitaker2DLevelSetLayers
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cells.png
     0
   )
diff --git a/src/Core/Common/AddNoiseToBinaryImage/CMakeLists.txt b/src/Core/Common/AddNoiseToBinaryImage/CMakeLists.txt
index 59a75af68..622c8bf6b 100644
--- a/src/Core/Common/AddNoiseToBinaryImage/CMakeLists.txt
+++ b/src/Core/Common/AddNoiseToBinaryImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AddNoiseToBinaryImage Code.cxx)
-target_link_libraries(AddNoiseToBinaryImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AddNoiseToBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AddNoiseToBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AddNoiseToBinaryImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     output.png
     50)
\ No newline at end of file
diff --git a/src/Core/Common/AddOffsetToIndex/CMakeLists.txt b/src/Core/Common/AddOffsetToIndex/CMakeLists.txt
index 2049ecafd..f5418f84a 100644
--- a/src/Core/Common/AddOffsetToIndex/CMakeLists.txt
+++ b/src/Core/Common/AddOffsetToIndex/CMakeLists.txt
@@ -5,10 +5,10 @@ project(AddOffsetToIndex)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(AddOffsetToIndex Code.cxx Code.py)
-target_link_libraries(AddOffsetToIndex ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AddOffsetToIndex
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME AddOffsetToIndexTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AddOffsetToIndex
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
 if(ITK_WRAP_PYTHON)
diff --git a/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/CMakeLists.txt b/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/CMakeLists.txt
index 14b760769..dc6cda28a 100644
--- a/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/CMakeLists.txt
+++ b/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyAFilterOnlyToASpecifiedRegionOfAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyAFilterOnlyToASpecifiedRegionOfAnImage Code.cxx Code.py)
-target_link_libraries(ApplyAFilterOnlyToASpecifiedRegionOfAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyAFilterOnlyToASpecifiedRegionOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyAFilterOnlyToASpecifiedRegionOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAFilterOnlyToASpecifiedRegionOfAnImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME ApplyAFilterOnlyToASpecifiedRegionOfAnImageTestPython
diff --git a/src/Core/Common/ApplyCustomOperationToEachPixelInImage/CMakeLists.txt b/src/Core/Common/ApplyCustomOperationToEachPixelInImage/CMakeLists.txt
index faff8c73a..fe0dc55eb 100644
--- a/src/Core/Common/ApplyCustomOperationToEachPixelInImage/CMakeLists.txt
+++ b/src/Core/Common/ApplyCustomOperationToEachPixelInImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CustomOperationToEachPixelInImage Code.cxx)
-target_link_libraries(CustomOperationToEachPixelInImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CustomOperationToEachPixelInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CustomOperationToEachPixelInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CustomOperationToEachPixelInImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/BoundingBoxOfAPointSet/CMakeLists.txt b/src/Core/Common/BoundingBoxOfAPointSet/CMakeLists.txt
index f46660013..e4c57d892 100644
--- a/src/Core/Common/BoundingBoxOfAPointSet/CMakeLists.txt
+++ b/src/Core/Common/BoundingBoxOfAPointSet/CMakeLists.txt
@@ -5,10 +5,10 @@ project(BoundingBoxOfAPointSet)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(BoundingBoxOfAPointSet Code.cxx Code.py)
-target_link_libraries(BoundingBoxOfAPointSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BoundingBoxOfAPointSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME BoundingBoxOfAPointSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BoundingBoxOfAPointSet)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME BoundingBoxOfAPointSetTestPython
diff --git a/src/Core/Common/BresenhamLine/CMakeLists.txt b/src/Core/Common/BresenhamLine/CMakeLists.txt
index e9cd74929..e68a8316b 100644
--- a/src/Core/Common/BresenhamLine/CMakeLists.txt
+++ b/src/Core/Common/BresenhamLine/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(BresenhamLine Code.cxx)
-target_link_libraries(BresenhamLine ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BresenhamLine
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BresenhamLineTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BresenhamLine
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Core/Common/BuildAHelloWorldProgram/CMakeLists.txt b/src/Core/Common/BuildAHelloWorldProgram/CMakeLists.txt
index c00d08994..28eae5202 100644
--- a/src/Core/Common/BuildAHelloWorldProgram/CMakeLists.txt
+++ b/src/Core/Common/BuildAHelloWorldProgram/CMakeLists.txt
@@ -5,10 +5,10 @@ project(BuildAHelloWorldProgram)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(BuildAHelloWorldProgram Code.cxx Code.py)
-target_link_libraries(BuildAHelloWorldProgram ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BuildAHelloWorldProgram
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME BuildAHelloWorldProgramTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BuildAHelloWorldProgram)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME BuildAHelloWorldProgramTestPython
diff --git a/src/Core/Common/CastVectorImageToAnotherType/CMakeLists.txt b/src/Core/Common/CastVectorImageToAnotherType/CMakeLists.txt
index 92be5f60d..362206db3 100644
--- a/src/Core/Common/CastVectorImageToAnotherType/CMakeLists.txt
+++ b/src/Core/Common/CastVectorImageToAnotherType/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CastVectorImageToAnotherType Code.cxx)
-target_link_libraries(CastVectorImageToAnotherType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CastVectorImageToAnotherType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CastVectorImageToAnotherTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CastVectorImageToAnotherType)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/CheckIfModuleIsPresent/CMakeLists.txt b/src/Core/Common/CheckIfModuleIsPresent/CMakeLists.txt
index 1ab220f08..87dcba6cc 100644
--- a/src/Core/Common/CheckIfModuleIsPresent/CMakeLists.txt
+++ b/src/Core/Common/CheckIfModuleIsPresent/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CheckIfModuleIsPresent Code.cxx)
-target_link_libraries(CheckIfModuleIsPresent ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CheckIfModuleIsPresent
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CheckIfModuleIsPresentTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CheckIfModuleIsPresent)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/ComputeTimeBetweenPoints/CMakeLists.txt b/src/Core/Common/ComputeTimeBetweenPoints/CMakeLists.txt
index dce639cb1..f286720aa 100644
--- a/src/Core/Common/ComputeTimeBetweenPoints/CMakeLists.txt
+++ b/src/Core/Common/ComputeTimeBetweenPoints/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeTimeBetweenPoints)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeTimeBetweenPoints Code.cxx)
-target_link_libraries(ComputeTimeBetweenPoints ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeTimeBetweenPoints
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeTimeBetweenPointsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeTimeBetweenPoints)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME ComputeTimeBetweenPointsTestPython
diff --git a/src/Core/Common/ConceptCheckingIsFloatingPoint/CMakeLists.txt b/src/Core/Common/ConceptCheckingIsFloatingPoint/CMakeLists.txt
index a9e6d3644..5c5585f04 100644
--- a/src/Core/Common/ConceptCheckingIsFloatingPoint/CMakeLists.txt
+++ b/src/Core/Common/ConceptCheckingIsFloatingPoint/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConceptCheckingIsFloatingPoint)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConceptCheckingIsFloatingPoint Code.cxx)
-target_link_libraries(ConceptCheckingIsFloatingPoint ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConceptCheckingIsFloatingPoint
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConceptCheckingIsFloatingPointTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConceptCheckingIsFloatingPoint)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/ConceptCheckingIsSameDimension/CMakeLists.txt b/src/Core/Common/ConceptCheckingIsSameDimension/CMakeLists.txt
index eb750e1a2..470f5acdb 100644
--- a/src/Core/Common/ConceptCheckingIsSameDimension/CMakeLists.txt
+++ b/src/Core/Common/ConceptCheckingIsSameDimension/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConceptCheckingIsSameDimension)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConceptCheckingIsSameDimension Code.cxx)
-target_link_libraries(ConceptCheckingIsSameDimension ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConceptCheckingIsSameDimension
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConceptCheckingIsSameDimensionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConceptCheckingIsSameDimension)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/ConceptCheckingIsSameType/CMakeLists.txt b/src/Core/Common/ConceptCheckingIsSameType/CMakeLists.txt
index 518c77408..2a9a13d4a 100644
--- a/src/Core/Common/ConceptCheckingIsSameType/CMakeLists.txt
+++ b/src/Core/Common/ConceptCheckingIsSameType/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConceptCheckingIsSameType)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConceptCheckingIsSameType Code.cxx)
-target_link_libraries(ConceptCheckingIsSameType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConceptCheckingIsSameType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConceptCheckingIsSameTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConceptCheckingIsSameType)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/ConvertArrayToImage/CMakeLists.txt b/src/Core/Common/ConvertArrayToImage/CMakeLists.txt
index a113ead54..68c0a96c3 100644
--- a/src/Core/Common/ConvertArrayToImage/CMakeLists.txt
+++ b/src/Core/Common/ConvertArrayToImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertArrayToImage Code.cxx)
-target_link_libraries(ConvertArrayToImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertArrayToImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertArrayToImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertArrayToImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Core/Common/CovariantVectorDotProduct/CMakeLists.txt b/src/Core/Common/CovariantVectorDotProduct/CMakeLists.txt
index bb55616c1..40571ba1e 100644
--- a/src/Core/Common/CovariantVectorDotProduct/CMakeLists.txt
+++ b/src/Core/Common/CovariantVectorDotProduct/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CovariantVectorDotProduct)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CovariantVectorDotProduct Code.cxx)
-target_link_libraries(CovariantVectorDotProduct ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CovariantVectorDotProduct
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CovariantVectorDotProductTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CovariantVectorDotProduct)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/CovariantVectorNorm/CMakeLists.txt b/src/Core/Common/CovariantVectorNorm/CMakeLists.txt
index b6e9cf3c0..9a6f7e1b8 100644
--- a/src/Core/Common/CovariantVectorNorm/CMakeLists.txt
+++ b/src/Core/Common/CovariantVectorNorm/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CovariantVectorNorm)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CovariantVectorNorm Code.cxx)
-target_link_libraries(CovariantVectorNorm ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CovariantVectorNorm
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CovariantVectorNormTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CovariantVectorNorm)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/CreateABackwardDifferenceOperator/CMakeLists.txt b/src/Core/Common/CreateABackwardDifferenceOperator/CMakeLists.txt
index 7b0e88e0f..6086b6328 100644
--- a/src/Core/Common/CreateABackwardDifferenceOperator/CMakeLists.txt
+++ b/src/Core/Common/CreateABackwardDifferenceOperator/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateABackwardDifferenceOperator)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateABackwardDifferenceOperator Code.cxx)
-target_link_libraries(CreateABackwardDifferenceOperator ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateABackwardDifferenceOperator
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateABackwardDifferenceOperatorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateABackwardDifferenceOperator)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/CreateACovariantVector/CMakeLists.txt b/src/Core/Common/CreateACovariantVector/CMakeLists.txt
index dd5cac5c5..289dfedbe 100644
--- a/src/Core/Common/CreateACovariantVector/CMakeLists.txt
+++ b/src/Core/Common/CreateACovariantVector/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateACovariantVector)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateACovariantVector Code.cxx Code.py)
-target_link_libraries(CreateACovariantVector ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateACovariantVector
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateACovariantVectorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateACovariantVector)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateACovariantVectorTestPython
diff --git a/src/Core/Common/CreateAFixedArray/CMakeLists.txt b/src/Core/Common/CreateAFixedArray/CMakeLists.txt
index 19ae9d280..8b38e4d8c 100644
--- a/src/Core/Common/CreateAFixedArray/CMakeLists.txt
+++ b/src/Core/Common/CreateAFixedArray/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAFixedArray)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAFixedArray Code.cxx Code.py)
-target_link_libraries(CreateAFixedArray ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAFixedArray
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAFixedArrayTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAFixedArray)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateAFixedArrayTestPython
diff --git a/src/Core/Common/CreateAIndex/CMakeLists.txt b/src/Core/Common/CreateAIndex/CMakeLists.txt
index fbed5ec25..bcdd7870f 100644
--- a/src/Core/Common/CreateAIndex/CMakeLists.txt
+++ b/src/Core/Common/CreateAIndex/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAIndex)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAIndex Code.py Code.cxx)
-target_link_libraries(CreateAIndex ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAIndex
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAIndexTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAIndex)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateAIndexTestPython
diff --git a/src/Core/Common/CreateAPointSet/CMakeLists.txt b/src/Core/Common/CreateAPointSet/CMakeLists.txt
index 7ebf4b001..ee4bdaa0b 100644
--- a/src/Core/Common/CreateAPointSet/CMakeLists.txt
+++ b/src/Core/Common/CreateAPointSet/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAPointSet)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAPointSet Code.py Code.cxx)
-target_link_libraries(CreateAPointSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAPointSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAPointSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAPointSet
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 )
 
 if(ITK_WRAP_PYTHON)
diff --git a/src/Core/Common/CreateASize/CMakeLists.txt b/src/Core/Common/CreateASize/CMakeLists.txt
index b00e3abfd..115a4088a 100644
--- a/src/Core/Common/CreateASize/CMakeLists.txt
+++ b/src/Core/Common/CreateASize/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateASize)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateASize Code.py Code.cxx)
-target_link_libraries(CreateASize ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateASize
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateASizeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateASize)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateASizeTestPython
diff --git a/src/Core/Common/CreateAVector/CMakeLists.txt b/src/Core/Common/CreateAVector/CMakeLists.txt
index d1afbcb38..9bbdd5832 100644
--- a/src/Core/Common/CreateAVector/CMakeLists.txt
+++ b/src/Core/Common/CreateAVector/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAVector)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAVector Code.py Code.cxx)
-target_link_libraries(CreateAVector ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAVector
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAVectorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAVector)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateAVectorTestPython
diff --git a/src/Core/Common/CreateAnImage/CMakeLists.txt b/src/Core/Common/CreateAnImage/CMakeLists.txt
index e2041f47d..7d65b1a90 100644
--- a/src/Core/Common/CreateAnImage/CMakeLists.txt
+++ b/src/Core/Common/CreateAnImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateAnImage Code.cxx)
-target_link_libraries(CreateAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -23,7 +23,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME CreateAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
 if(ITK_WRAP_PYTHON)
diff --git a/src/Core/Common/CreateAnImageOfVectors/CMakeLists.txt b/src/Core/Common/CreateAnImageOfVectors/CMakeLists.txt
index 906bafdb7..5c35de9e6 100644
--- a/src/Core/Common/CreateAnImageOfVectors/CMakeLists.txt
+++ b/src/Core/Common/CreateAnImageOfVectors/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateAnImageOfVectors Code.cxx)
-target_link_libraries(CreateAnImageOfVectors ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAnImageOfVectors
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -23,7 +23,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME CreateAnImageOfVectorsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAnImageOfVectors
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
 if(ITK_WRAP_PYTHON)
diff --git a/src/Core/Common/CreateAnImageRegion/CMakeLists.txt b/src/Core/Common/CreateAnImageRegion/CMakeLists.txt
index 53ffadc7f..e2abab205 100644
--- a/src/Core/Common/CreateAnImageRegion/CMakeLists.txt
+++ b/src/Core/Common/CreateAnImageRegion/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAnImageRegion)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAnImageRegion Code.cxx Code.py)
-target_link_libraries(CreateAnImageRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAnImageRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -21,7 +21,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 enable_testing()
 set(testOutputRegex "ImageRegion")
 add_test(NAME CreateAnImageRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAnImageRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 set_tests_properties(CreateAnImageRegionTest PROPERTIES
     PASS_REGULAR_EXPRESSION "${testOutputRegex}")
 
diff --git a/src/Core/Common/CreateAnRGBImage/CMakeLists.txt b/src/Core/Common/CreateAnRGBImage/CMakeLists.txt
index f59b3e5f4..fb1e1f9a7 100644
--- a/src/Core/Common/CreateAnRGBImage/CMakeLists.txt
+++ b/src/Core/Common/CreateAnRGBImage/CMakeLists.txt
@@ -4,10 +4,10 @@ project(CreateAnRGBImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAnRGBImage Code.cxx)
-target_link_libraries(CreateAnRGBImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAnRGBImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -19,7 +19,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME CreateAnRGBImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAnRGBImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateAnRGBImageTestPython
diff --git a/src/Core/Common/CreateAnother/CMakeLists.txt b/src/Core/Common/CreateAnother/CMakeLists.txt
index c02b4fed4..12d2b8cbe 100644
--- a/src/Core/Common/CreateAnother/CMakeLists.txt
+++ b/src/Core/Common/CreateAnother/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAnother)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAnother Code.cxx)
-target_link_libraries(CreateAnother ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAnother
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAnotherTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAnother)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/CreateAnotherInstanceOfAnImage/CMakeLists.txt b/src/Core/Common/CreateAnotherInstanceOfAnImage/CMakeLists.txt
index 79532368b..f50e2634d 100644
--- a/src/Core/Common/CreateAnotherInstanceOfAnImage/CMakeLists.txt
+++ b/src/Core/Common/CreateAnotherInstanceOfAnImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateAnotherInstanceOfAnImage Code.cxx)
-target_link_libraries(CreateAnotherInstanceOfAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAnotherInstanceOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAnotherInstanceOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAnotherInstanceOfAnImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/CreateDerivativeKernel/CMakeLists.txt b/src/Core/Common/CreateDerivativeKernel/CMakeLists.txt
index 03a28492f..fc53d94a9 100644
--- a/src/Core/Common/CreateDerivativeKernel/CMakeLists.txt
+++ b/src/Core/Common/CreateDerivativeKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateDerivativeKernel Code.cxx)
-target_link_libraries(CreateDerivativeKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateDerivativeKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateDerivativeKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateDerivativeKernel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateDerivativeKernelTestPython
diff --git a/src/Core/Common/CreateForwardDifferenceKernel/CMakeLists.txt b/src/Core/Common/CreateForwardDifferenceKernel/CMakeLists.txt
index ec7d1cdf8..fdc4ccdad 100644
--- a/src/Core/Common/CreateForwardDifferenceKernel/CMakeLists.txt
+++ b/src/Core/Common/CreateForwardDifferenceKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateForwardDifferenceKernel Code.cxx)
-target_link_libraries(CreateForwardDifferenceKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateForwardDifferenceKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateForwardDifferenceKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateForwardDifferenceKernel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateForwardDifferenceKernelTestPython
diff --git a/src/Core/Common/CreateGaussianDerivativeKernel/CMakeLists.txt b/src/Core/Common/CreateGaussianDerivativeKernel/CMakeLists.txt
index fd79066e5..5d6735ee8 100644
--- a/src/Core/Common/CreateGaussianDerivativeKernel/CMakeLists.txt
+++ b/src/Core/Common/CreateGaussianDerivativeKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateGaussianDerivativeKernel Code.cxx)
-target_link_libraries(CreateGaussianDerivativeKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateGaussianDerivativeKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateGaussianDerivativeKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateGaussianDerivativeKernel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateGaussianDerivativeKernelTestPython
diff --git a/src/Core/Common/CreateGaussianKernel/CMakeLists.txt b/src/Core/Common/CreateGaussianKernel/CMakeLists.txt
index 22898442d..c2962bec7 100644
--- a/src/Core/Common/CreateGaussianKernel/CMakeLists.txt
+++ b/src/Core/Common/CreateGaussianKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateGaussianKernel Code.cxx)
-target_link_libraries(CreateGaussianKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateGaussianKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateGaussianKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateGaussianKernel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateGaussianKernelTestPython
diff --git a/src/Core/Common/CreateLaplacianKernel/CMakeLists.txt b/src/Core/Common/CreateLaplacianKernel/CMakeLists.txt
index 5b101506d..32f836054 100644
--- a/src/Core/Common/CreateLaplacianKernel/CMakeLists.txt
+++ b/src/Core/Common/CreateLaplacianKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateLaplacianKernel Code.cxx)
-target_link_libraries(CreateLaplacianKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateLaplacianKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateLaplacianKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateLaplacianKernel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateLaplacianKernelTestPython
diff --git a/src/Core/Common/CreateSobelKernel/CMakeLists.txt b/src/Core/Common/CreateSobelKernel/CMakeLists.txt
index c3fc77133..14d6f8397 100644
--- a/src/Core/Common/CreateSobelKernel/CMakeLists.txt
+++ b/src/Core/Common/CreateSobelKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateSobelKernel Code.cxx)
-target_link_libraries(CreateSobelKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateSobelKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateSobelKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateSobelKernel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME CreateSobelKernelTestPython
diff --git a/src/Core/Common/CreateVectorImage/CMakeLists.txt b/src/Core/Common/CreateVectorImage/CMakeLists.txt
index 133f732da..a5f2e9fef 100644
--- a/src/Core/Common/CreateVectorImage/CMakeLists.txt
+++ b/src/Core/Common/CreateVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateVectorImage Code.cxx)
-target_link_libraries(CreateVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateVectorImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/CropImageBySpecifyingRegion/CMakeLists.txt b/src/Core/Common/CropImageBySpecifyingRegion/CMakeLists.txt
index ac8457711..d9035d44f 100644
--- a/src/Core/Common/CropImageBySpecifyingRegion/CMakeLists.txt
+++ b/src/Core/Common/CropImageBySpecifyingRegion/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CropImageBySpecifyingRegion Code.cxx)
-target_link_libraries(CropImageBySpecifyingRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CropImageBySpecifyingRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CropImageBySpecifyingRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CropImageBySpecifyingRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/DeepCopyImage/CMakeLists.txt b/src/Core/Common/DeepCopyImage/CMakeLists.txt
index a9d9ec82d..53377e9a0 100644
--- a/src/Core/Common/DeepCopyImage/CMakeLists.txt
+++ b/src/Core/Common/DeepCopyImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DeepCopyImage Code.cxx)
-target_link_libraries(DeepCopyImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DeepCopyImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DeepCopyImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DeepCopyImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/DemonstrateAllOperators/CMakeLists.txt b/src/Core/Common/DemonstrateAllOperators/CMakeLists.txt
index 4312a005a..caa3bc1b8 100644
--- a/src/Core/Common/DemonstrateAllOperators/CMakeLists.txt
+++ b/src/Core/Common/DemonstrateAllOperators/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DemonstrateAllOperators Code.cxx)
-target_link_libraries(DemonstrateAllOperators ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DemonstrateAllOperators
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DemonstrateAllOperatorsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DemonstrateAllOperators)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/DirectWarningToFile/CMakeLists.txt b/src/Core/Common/DirectWarningToFile/CMakeLists.txt
index 8f44e17cb..b84c13544 100644
--- a/src/Core/Common/DirectWarningToFile/CMakeLists.txt
+++ b/src/Core/Common/DirectWarningToFile/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DirectWarningToFile Code.cxx)
-target_link_libraries(DirectWarningToFile ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DirectWarningToFile
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DirectWarningToFileTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DirectWarningToFile)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/DisplayImage/CMakeLists.txt b/src/Core/Common/DisplayImage/CMakeLists.txt
index fac7aed15..61c9b461b 100644
--- a/src/Core/Common/DisplayImage/CMakeLists.txt
+++ b/src/Core/Common/DisplayImage/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(DisplayImage Code.cxx)
-  target_link_libraries(DisplayImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(DisplayImage Code.cxx)
-  target_link_libraries(DisplayImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS DisplayImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -42,4 +42,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DisplayImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DisplayImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/DistanceBetweenIndices/CMakeLists.txt b/src/Core/Common/DistanceBetweenIndices/CMakeLists.txt
index 810107415..1032ea831 100644
--- a/src/Core/Common/DistanceBetweenIndices/CMakeLists.txt
+++ b/src/Core/Common/DistanceBetweenIndices/CMakeLists.txt
@@ -5,10 +5,10 @@ project(DistanceBetweenIndices)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(DistanceBetweenIndices Code.cxx)
-target_link_libraries(DistanceBetweenIndices ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DistanceBetweenIndices
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DistanceBetweenIndicesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DistanceBetweenIndices)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/DistanceBetweenPoints/CMakeLists.txt b/src/Core/Common/DistanceBetweenPoints/CMakeLists.txt
index ec1d0aff6..1eaad9609 100644
--- a/src/Core/Common/DistanceBetweenPoints/CMakeLists.txt
+++ b/src/Core/Common/DistanceBetweenPoints/CMakeLists.txt
@@ -5,10 +5,10 @@ project(DistanceBetweenPoints)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(DistanceBetweenPoints Code.cxx)
-target_link_libraries(DistanceBetweenPoints ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DistanceBetweenPoints
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DistanceBetweenPointsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DistanceBetweenPoints)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/DoDataParallelThreading/CMakeLists.txt b/src/Core/Common/DoDataParallelThreading/CMakeLists.txt
index 883f4cc37..3e5239658 100644
--- a/src/Core/Common/DoDataParallelThreading/CMakeLists.txt
+++ b/src/Core/Common/DoDataParallelThreading/CMakeLists.txt
@@ -5,10 +5,10 @@ project(DoDataParallelThreading)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(DoDataParallelThreading Code.cxx)
-target_link_libraries(DoDataParallelThreading ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DoDataParallelThreading
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,5 +20,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DoDataParallelThreadingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DoDataParallelThreading
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 )
diff --git a/src/Core/Common/DuplicateAnImage/CMakeLists.txt b/src/Core/Common/DuplicateAnImage/CMakeLists.txt
index 7bdde0668..af68257b7 100644
--- a/src/Core/Common/DuplicateAnImage/CMakeLists.txt
+++ b/src/Core/Common/DuplicateAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(DuplicateAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(DuplicateAnImage Code.cxx)
-target_link_libraries(DuplicateAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DuplicateAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DuplicateAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DuplicateAnImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME DuplicateAnImageTestPython
diff --git a/src/Core/Common/FilterAndParallelizeImageRegion/CMakeLists.txt b/src/Core/Common/FilterAndParallelizeImageRegion/CMakeLists.txt
index 7dc3e7af1..f3845a704 100644
--- a/src/Core/Common/FilterAndParallelizeImageRegion/CMakeLists.txt
+++ b/src/Core/Common/FilterAndParallelizeImageRegion/CMakeLists.txt
@@ -5,10 +5,10 @@ project(FilterAndParallelizeImageRegion)
 find_package(ITK 5.0 REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(FilterAndParallelizeImageRegion Code.cxx)
-target_link_libraries(FilterAndParallelizeImageRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FilterAndParallelizeImageRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FilterAndParallelizeImageRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FilterAndParallelizeImageRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/FilterImage/CMakeLists.txt b/src/Core/Common/FilterImage/CMakeLists.txt
index a3820cf92..911a02a27 100644
--- a/src/Core/Common/FilterImage/CMakeLists.txt
+++ b/src/Core/Common/FilterImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(FilterImage Code.cxx)
-target_link_libraries(FilterImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FilterImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FilterImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FilterImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/FilterImageUsingMultipleThreads/CMakeLists.txt b/src/Core/Common/FilterImageUsingMultipleThreads/CMakeLists.txt
index 3b057a670..e5885f741 100644
--- a/src/Core/Common/FilterImageUsingMultipleThreads/CMakeLists.txt
+++ b/src/Core/Common/FilterImageUsingMultipleThreads/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(FilterImageUsingMultipleThreads Code.cxx)
-target_link_libraries(FilterImageUsingMultipleThreads ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FilterImageUsingMultipleThreads
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FilterImageUsingMultipleThreadsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FilterImageUsingMultipleThreads)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/FilterImageWithoutCopying/CMakeLists.txt b/src/Core/Common/FilterImageWithoutCopying/CMakeLists.txt
index f70ba22da..879ab26d3 100644
--- a/src/Core/Common/FilterImageWithoutCopying/CMakeLists.txt
+++ b/src/Core/Common/FilterImageWithoutCopying/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(FilterImageWithoutCopying Code.cxx)
-target_link_libraries(FilterImageWithoutCopying ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FilterImageWithoutCopying
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FilterImageWithoutCopyingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FilterImageWithoutCopying)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt b/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt
index 3ef9862cd..1d1d610b6 100644
--- a/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt
+++ b/src/Core/Common/FindMaxAndMinInImage/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(FindMaxAndMinInImage Code.cxx)
-target_link_libraries(FindMaxAndMinInImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS FindMaxAndMinInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -43,4 +43,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FindMaxAndMinInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FindMaxAndMinInImage Yinyang.png)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} Yinyang.png)
diff --git a/src/Core/Common/GetImageSize/CMakeLists.txt b/src/Core/Common/GetImageSize/CMakeLists.txt
index 7b2817412..de1844740 100644
--- a/src/Core/Common/GetImageSize/CMakeLists.txt
+++ b/src/Core/Common/GetImageSize/CMakeLists.txt
@@ -5,10 +5,10 @@ project(GetImageSize)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(GetImageSize Code.cxx)
-target_link_libraries(GetImageSize ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GetImageSize
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GetImageSizeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GetImageSize
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png
 )
 
diff --git a/src/Core/Common/GetNameOfClass/CMakeLists.txt b/src/Core/Common/GetNameOfClass/CMakeLists.txt
index 97a099f33..b3dedeffb 100644
--- a/src/Core/Common/GetNameOfClass/CMakeLists.txt
+++ b/src/Core/Common/GetNameOfClass/CMakeLists.txt
@@ -5,10 +5,10 @@ project(GetNameOfClass)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(GetNameOfClass Code.cxx)
-target_link_libraries(GetNameOfClass ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GetNameOfClass
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GetNameOfClassTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GetNameOfClass)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/GetOrSetMemberVariableOfITKClass/CMakeLists.txt b/src/Core/Common/GetOrSetMemberVariableOfITKClass/CMakeLists.txt
index 131509ba7..f127f1e1c 100644
--- a/src/Core/Common/GetOrSetMemberVariableOfITKClass/CMakeLists.txt
+++ b/src/Core/Common/GetOrSetMemberVariableOfITKClass/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(GetOrSetMemberVariableOfITKClass Code.cxx)
-target_link_libraries(GetOrSetMemberVariableOfITKClass ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GetOrSetMemberVariableOfITKClass
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GetOrSetMemberVariableOfITKClassTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GetOrSetMemberVariableOfITKClass)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/GetTypeBasicInformation/CMakeLists.txt b/src/Core/Common/GetTypeBasicInformation/CMakeLists.txt
index bed3032fc..8448f002c 100644
--- a/src/Core/Common/GetTypeBasicInformation/CMakeLists.txt
+++ b/src/Core/Common/GetTypeBasicInformation/CMakeLists.txt
@@ -5,10 +5,10 @@ project(GetTypeBasicInformation)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(GetTypeBasicInformation Code.cxx)
-target_link_libraries(GetTypeBasicInformation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GetTypeBasicInformation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GetTypeBasicInformationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GetTypeBasicInformation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME GetTypeBasicInformationTestPython
diff --git a/src/Core/Common/ImageRegionIntersection/CMakeLists.txt b/src/Core/Common/ImageRegionIntersection/CMakeLists.txt
index 5e0733ac1..21119d452 100644
--- a/src/Core/Common/ImageRegionIntersection/CMakeLists.txt
+++ b/src/Core/Common/ImageRegionIntersection/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ImageRegionIntersection)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ImageRegionIntersection Code.cxx)
-target_link_libraries(ImageRegionIntersection ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ImageRegionIntersection
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ImageRegionIntersectionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ImageRegionIntersection)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/ImageRegionOverlap/CMakeLists.txt b/src/Core/Common/ImageRegionOverlap/CMakeLists.txt
index 92674fa0c..3256341b1 100644
--- a/src/Core/Common/ImageRegionOverlap/CMakeLists.txt
+++ b/src/Core/Common/ImageRegionOverlap/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ImageRegionOverlap)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ImageRegionOverlap Code.cxx)
-target_link_libraries(ImageRegionOverlap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ImageRegionOverlap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ImageRegionOverlapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ImageRegionOverlap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Output.png
   )
diff --git a/src/Core/Common/ImportPixelBufferIntoAnImage/CMakeLists.txt b/src/Core/Common/ImportPixelBufferIntoAnImage/CMakeLists.txt
index 2fdbe782f..dc8beaf7a 100644
--- a/src/Core/Common/ImportPixelBufferIntoAnImage/CMakeLists.txt
+++ b/src/Core/Common/ImportPixelBufferIntoAnImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ImportPixelBufferIntoAnImage Code.cxx)
-target_link_libraries(ImportPixelBufferIntoAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ImportPixelBufferIntoAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -25,7 +25,7 @@ set(output_image Output.png)
 set(test_options)
 
 add_test(NAME ImportPixelBufferIntoAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ImportPixelBufferIntoAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${output_image}
     ${test_options}
   )
diff --git a/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt b/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt
index 3098414f4..186199099 100644
--- a/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt
+++ b/src/Core/Common/InPlaceFilterOfImage/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(InPlaceFilterOfImage Code.cxx)
-target_link_libraries(InPlaceFilterOfImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS InPlaceFilterOfImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -43,4 +43,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME InPlaceFilterOfImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/InPlaceFilterOfImage Gourds.png)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} Gourds.png)
diff --git a/src/Core/Common/IsPixelInsideRegion/CMakeLists.txt b/src/Core/Common/IsPixelInsideRegion/CMakeLists.txt
index edbeab2cc..719401bf7 100644
--- a/src/Core/Common/IsPixelInsideRegion/CMakeLists.txt
+++ b/src/Core/Common/IsPixelInsideRegion/CMakeLists.txt
@@ -5,10 +5,10 @@ project(IsPixelInsideRegion)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(IsPixelInsideRegion Code.cxx)
-target_link_libraries(IsPixelInsideRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IsPixelInsideRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME IsPixelInsideRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IsPixelInsideRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME IsPixelInsideRegionPython
diff --git a/src/Core/Common/IterateImageStartingAtSeed/CMakeLists.txt b/src/Core/Common/IterateImageStartingAtSeed/CMakeLists.txt
index 5d4c4206a..b37cb13f6 100644
--- a/src/Core/Common/IterateImageStartingAtSeed/CMakeLists.txt
+++ b/src/Core/Common/IterateImageStartingAtSeed/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(IterateImageStartingAtSeed Code.cxx)
-target_link_libraries(IterateImageStartingAtSeed ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateImageStartingAtSeed
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateImageStartingAtSeedTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateImageStartingAtSeed)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/IterateLineThroughImage/CMakeLists.txt b/src/Core/Common/IterateLineThroughImage/CMakeLists.txt
index 2fc9a707c..8eab3e3f5 100644
--- a/src/Core/Common/IterateLineThroughImage/CMakeLists.txt
+++ b/src/Core/Common/IterateLineThroughImage/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(IterateLineThroughImage Code.cxx)
-  target_link_libraries(IterateLineThroughImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
     )
   endif()
 else()
-  add_executable(IterateLineThroughImage Code.cxx)
-  target_link_libraries(IterateLineThroughImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS IterateLineThroughImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -42,5 +42,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateLineThroughImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateLineThroughImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/CMakeLists.txt b/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/CMakeLists.txt
index c9768a79c..869856bb3 100644
--- a/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/CMakeLists.txt
+++ b/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(IterateLineThroughImageWithoutWriteAccess Code.cxx)
-target_link_libraries(IterateLineThroughImageWithoutWriteAccess ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateLineThroughImageWithoutWriteAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateLineThroughImageWithoutWriteAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateLineThroughImageWithoutWriteAccess)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/IterateOnAVectorContainer/CMakeLists.txt b/src/Core/Common/IterateOnAVectorContainer/CMakeLists.txt
index 4c34ba6ce..1e27e30d9 100644
--- a/src/Core/Common/IterateOnAVectorContainer/CMakeLists.txt
+++ b/src/Core/Common/IterateOnAVectorContainer/CMakeLists.txt
@@ -5,10 +5,10 @@ project(IterateOnAVectorContainer)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(IterateOnAVectorContainer Code.cxx)
-target_link_libraries(IterateOnAVectorContainer ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateOnAVectorContainer
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateOnAVectorContainerTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateOnAVectorContainer)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/CMakeLists.txt b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/CMakeLists.txt
index 802030fc7..6f9578986 100644
--- a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/CMakeLists.txt
+++ b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/CMakeLists.txt
@@ -5,10 +5,10 @@ project(IterateOverARegionWithAShapedNeighborhoodIterator)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(IterateOverARegionWithAShapedNeighborhoodIterator Code.cxx)
-target_link_libraries(IterateOverARegionWithAShapedNeighborhoodIterator ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateOverARegionWithAShapedNeighborhoodIterator
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateOverARegionWithAShapedNeighborhoodIteratorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateOverARegionWithAShapedNeighborhoodIterator)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/CMakeLists.txt b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/CMakeLists.txt
index baa61bca0..4143bdd55 100644
--- a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/CMakeLists.txt
+++ b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/CMakeLists.txt
@@ -5,10 +5,10 @@ project(IterateOverARegionWithAShapedNeighborhoodIteratorManual)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(IterateOverARegionWithAShapedNeighborhoodIteratorManual Code.cxx)
-target_link_libraries(IterateOverARegionWithAShapedNeighborhoodIteratorManual ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateOverARegionWithAShapedNeighborhoodIteratorManual
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateOverARegionWithAShapedNeighborhoodIteratorManualTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateOverARegionWithAShapedNeighborhoodIteratorManual)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/IterateOverSpecificRegion/CMakeLists.txt b/src/Core/Common/IterateOverSpecificRegion/CMakeLists.txt
index 978db8f39..f2a7c326c 100644
--- a/src/Core/Common/IterateOverSpecificRegion/CMakeLists.txt
+++ b/src/Core/Common/IterateOverSpecificRegion/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(IterateOverSpecificRegion Code.cxx)
-target_link_libraries(IterateOverSpecificRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateOverSpecificRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateOverSpecificRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateOverSpecificRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt
index df47726f4..24ff569dc 100644
--- a/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt
+++ b/src/Core/Common/IterateRegionWithAccessToIndexWithWriteAccess/CMakeLists.txt
@@ -16,8 +16,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(IterateRegionWithAccessToIndexWithWriteAccess Code.cxx)
-  target_link_libraries(IterateRegionWithAccessToIndexWithWriteAccess ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -26,11 +26,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(IterateRegionWithAccessToIndexWithWriteAccess Code.cxx)
-  target_link_libraries(IterateRegionWithAccessToIndexWithWriteAccess ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS IterateRegionWithAccessToIndexWithWriteAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -43,5 +43,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateRegionWithAccessToIndexWithWriteAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateRegionWithAccessToIndexWithWriteAccess
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
diff --git a/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt
index 4265b8db9..f3eb33e11 100644
--- a/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt
+++ b/src/Core/Common/IterateRegionWithAccessToIndexWithoutWriteAccess/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(IterateRegionWithAccessToIndexWithoutWriteAccess Code.cxx)
-  target_link_libraries(IterateRegionWithAccessToIndexWithoutWriteAccess ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
     )
   endif()
 else()
-  add_executable(IterateRegionWithAccessToIndexWithoutWriteAccess Code.cxx)
-  target_link_libraries(IterateRegionWithAccessToIndexWithoutWriteAccess ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS IterateRegionWithAccessToIndexWithoutWriteAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -42,6 +42,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateRegionWithAccessToIndexWithoutWriteAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateRegionWithAccessToIndexWithoutWriteAccess
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
 
diff --git a/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt b/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt
index 32fe25f46..bc925bab7 100644
--- a/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt
+++ b/src/Core/Common/IterateRegionWithNeighborhood/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(IterateRegionWithNeighborhood Code.cxx)
-target_link_libraries(IterateRegionWithNeighborhood ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS IterateRegionWithNeighborhood
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -43,5 +43,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateRegionWithNeighborhoodTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateRegionWithNeighborhood Yinyang.png)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} Yinyang.png)
 
diff --git a/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt
index d43da4681..bc82d09ec 100644
--- a/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt
+++ b/src/Core/Common/IterateRegionWithWriteAccess/CMakeLists.txt
@@ -21,8 +21,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(IterateRegionWithWriteAccess Code.cxx)
-target_link_libraries(IterateRegionWithWriteAccess ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -31,7 +31,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS IterateRegionWithWriteAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateRegionWithWriteAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateRegionWithWriteAccess Yinyang.png)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} Yinyang.png)
diff --git a/src/Core/Common/IterateRegionWithoutWriteAccess/CMakeLists.txt b/src/Core/Common/IterateRegionWithoutWriteAccess/CMakeLists.txt
index 632ad90e1..7645ef99b 100644
--- a/src/Core/Common/IterateRegionWithoutWriteAccess/CMakeLists.txt
+++ b/src/Core/Common/IterateRegionWithoutWriteAccess/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(IterateRegionWithoutWriteAccess Code.cxx)
-target_link_libraries(IterateRegionWithoutWriteAccess ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateRegionWithoutWriteAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IterateRegionWithoutWriteAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateRegionWithoutWriteAccess
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
\ No newline at end of file
diff --git a/src/Core/Common/IterateWithNeighborhoodWithoutAccess/CMakeLists.txt b/src/Core/Common/IterateWithNeighborhoodWithoutAccess/CMakeLists.txt
index 127a0694a..202debd01 100644
--- a/src/Core/Common/IterateWithNeighborhoodWithoutAccess/CMakeLists.txt
+++ b/src/Core/Common/IterateWithNeighborhoodWithoutAccess/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(IterateWithNeighborhoodWithoutAccess Code.cxx)
-target_link_libraries(IterateWithNeighborhoodWithoutAccess ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterateWithNeighborhoodWithoutAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -24,5 +24,5 @@ enable_testing()
 set(input_image Yinyang.png)
 
 add_test(NAME IterateWithNeighborhoodWithoutAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterateWithNeighborhoodWithoutAccess
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image})
\ No newline at end of file
diff --git a/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt b/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt
index e60ba344f..cefa83e4b 100644
--- a/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt
+++ b/src/Core/Common/MakeOutOfBoundsPixelsReturnConstValue/CMakeLists.txt
@@ -22,8 +22,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(MakeOutOfBoundsPixelsReturnConstValue Code.cxx)
-target_link_libraries(MakeOutOfBoundsPixelsReturnConstValue ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -32,7 +32,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS MakeOutOfBoundsPixelsReturnConstValue
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -45,5 +45,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MakeOutOfBoundsPixelsReturnConstValueTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MakeOutOfBoundsPixelsReturnConstValue)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/MakePartOfImageTransparent/CMakeLists.txt b/src/Core/Common/MakePartOfImageTransparent/CMakeLists.txt
index 5d30fe661..797cd6897 100644
--- a/src/Core/Common/MakePartOfImageTransparent/CMakeLists.txt
+++ b/src/Core/Common/MakePartOfImageTransparent/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MakePartOfImageTransparent Code.cxx)
-target_link_libraries(MakePartOfImageTransparent ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MakePartOfImageTransparent
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MakePartOfImageTransparentTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MakePartOfImageTransparent
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Core/Common/Matrix/CMakeLists.txt b/src/Core/Common/Matrix/CMakeLists.txt
index 3852e8c5b..174da82fb 100644
--- a/src/Core/Common/Matrix/CMakeLists.txt
+++ b/src/Core/Common/Matrix/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(Matrix Code.cxx)
-target_link_libraries(Matrix ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Matrix
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,6 +22,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MatrixTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Matrix
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
diff --git a/src/Core/Common/MatrixInverse/CMakeLists.txt b/src/Core/Common/MatrixInverse/CMakeLists.txt
index 37a1c551c..5a0decb9e 100644
--- a/src/Core/Common/MatrixInverse/CMakeLists.txt
+++ b/src/Core/Common/MatrixInverse/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MatrixInverse Code.cxx)
-target_link_libraries(MatrixInverse ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MatrixInverse
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MatrixInverseTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MatrixInverse
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Core/Common/MersenneTwisterRandomIntegerGenerator/CMakeLists.txt b/src/Core/Common/MersenneTwisterRandomIntegerGenerator/CMakeLists.txt
index ce86d8a86..f5fbfafe1 100644
--- a/src/Core/Common/MersenneTwisterRandomIntegerGenerator/CMakeLists.txt
+++ b/src/Core/Common/MersenneTwisterRandomIntegerGenerator/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MersenneTwisterRandomIntegerGenerator)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MersenneTwisterRandomIntegerGenerator Code.cxx)
-target_link_libraries(MersenneTwisterRandomIntegerGenerator ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MersenneTwisterRandomIntegerGenerator
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MersenneTwisterRandomIntegerGeneratorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MersenneTwisterRandomIntegerGenerator)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/MersenneTwisterRandomNumberGenerator/CMakeLists.txt b/src/Core/Common/MersenneTwisterRandomNumberGenerator/CMakeLists.txt
index 6da11aac3..3bcd1d4c9 100644
--- a/src/Core/Common/MersenneTwisterRandomNumberGenerator/CMakeLists.txt
+++ b/src/Core/Common/MersenneTwisterRandomNumberGenerator/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MersenneTwisterRandomNumberGenerator)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MersenneTwisterRandomNumberGenerator Code.cxx)
-target_link_libraries(MersenneTwisterRandomNumberGenerator ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MersenneTwisterRandomNumberGenerator
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MersenneTwisterRandomNumberGeneratorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MersenneTwisterRandomNumberGenerator)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/MiniPipeline/CMakeLists.txt b/src/Core/Common/MiniPipeline/CMakeLists.txt
index bf011f63e..08a5fc982 100644
--- a/src/Core/Common/MiniPipeline/CMakeLists.txt
+++ b/src/Core/Common/MiniPipeline/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MiniPipeline Code.cxx)
-target_link_libraries(MiniPipeline ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MiniPipeline
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MiniPipelineTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MiniPipeline)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt b/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt
index 5dc71419c..7cd4d1352 100644
--- a/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt
+++ b/src/Core/Common/MultiThreadOilPainting/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(MultiThreadOilPainting Code.cxx)
-  target_link_libraries(MultiThreadOilPainting ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(MultiThreadOilPainting Code.cxx)
-  target_link_libraries(MultiThreadOilPainting ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS MultiThreadOilPainting
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -42,4 +42,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultiThreadOilPaintingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultiThreadOilPainting Yinyang.png 100 20)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} Yinyang.png 100 20)
diff --git a/src/Core/Common/MultipleInputsOfDifferentType/CMakeLists.txt b/src/Core/Common/MultipleInputsOfDifferentType/CMakeLists.txt
index 8fadcec2c..545a8a78b 100644
--- a/src/Core/Common/MultipleInputsOfDifferentType/CMakeLists.txt
+++ b/src/Core/Common/MultipleInputsOfDifferentType/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultipleInputsOfDifferentType Code.cxx)
-target_link_libraries(MultipleInputsOfDifferentType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultipleInputsOfDifferentType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultipleInputsOfDifferentTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultipleInputsOfDifferentType)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/MultipleInputsOfSameType/CMakeLists.txt b/src/Core/Common/MultipleInputsOfSameType/CMakeLists.txt
index c0f7b9ac9..d3d60ccc0 100644
--- a/src/Core/Common/MultipleInputsOfSameType/CMakeLists.txt
+++ b/src/Core/Common/MultipleInputsOfSameType/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultipleInputsOfSameType Code.cxx)
-target_link_libraries(MultipleInputsOfSameType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultipleInputsOfSameType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultipleInputsOfSameTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultipleInputsOfSameType)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/MultipleOutputsOfDifferentType/CMakeLists.txt b/src/Core/Common/MultipleOutputsOfDifferentType/CMakeLists.txt
index c378a2679..5c6ed2488 100644
--- a/src/Core/Common/MultipleOutputsOfDifferentType/CMakeLists.txt
+++ b/src/Core/Common/MultipleOutputsOfDifferentType/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultipleOutputsOfDifferentType Code.cxx)
-target_link_libraries(MultipleOutputsOfDifferentType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultipleOutputsOfDifferentType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultipleOutputsOfDifferentTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultipleOutputsOfDifferentType)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/MultipleOutputsOfSameType/CMakeLists.txt b/src/Core/Common/MultipleOutputsOfSameType/CMakeLists.txt
index 9fe76ad5b..2319da122 100644
--- a/src/Core/Common/MultipleOutputsOfSameType/CMakeLists.txt
+++ b/src/Core/Common/MultipleOutputsOfSameType/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultipleOutputsOfSameType Code.cxx)
-target_link_libraries(MultipleOutputsOfSameType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultipleOutputsOfSameType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultipleOutputsOfSameTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultipleOutputsOfSameType)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/NeighborhoodIteratorOnVectorImage/CMakeLists.txt b/src/Core/Common/NeighborhoodIteratorOnVectorImage/CMakeLists.txt
index 121ecad84..f0f4b5d74 100644
--- a/src/Core/Common/NeighborhoodIteratorOnVectorImage/CMakeLists.txt
+++ b/src/Core/Common/NeighborhoodIteratorOnVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(NeighborhoodIteratorOnVectorImage Code.cxx)
-target_link_libraries(NeighborhoodIteratorOnVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS NeighborhoodIteratorOnVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME NeighborhoodIteratorOnVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NeighborhoodIteratorOnVectorImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/ObserveAnEvent/CMakeLists.txt b/src/Core/Common/ObserveAnEvent/CMakeLists.txt
index 3cd916343..0b091d3dc 100644
--- a/src/Core/Common/ObserveAnEvent/CMakeLists.txt
+++ b/src/Core/Common/ObserveAnEvent/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ObserveAnEvent)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ObserveAnEvent Code.cxx)
-target_link_libraries(ObserveAnEvent ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ObserveAnEvent
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME ObserveAnEventTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ObserveAnEvent)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME ObserveAnEventTestPython
diff --git a/src/Core/Common/PassImageToFunction/CMakeLists.txt b/src/Core/Common/PassImageToFunction/CMakeLists.txt
index 066de1431..17385a2e3 100644
--- a/src/Core/Common/PassImageToFunction/CMakeLists.txt
+++ b/src/Core/Common/PassImageToFunction/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PassImageToFunction Code.cxx)
-target_link_libraries(PassImageToFunction ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PassImageToFunction
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PassImageToFunctionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PassImageToFunction)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/PermuteSequenceOfIndices/CMakeLists.txt b/src/Core/Common/PermuteSequenceOfIndices/CMakeLists.txt
index f09318b95..c8c153c03 100644
--- a/src/Core/Common/PermuteSequenceOfIndices/CMakeLists.txt
+++ b/src/Core/Common/PermuteSequenceOfIndices/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PermuteSequenceOfIndices Code.cxx)
-target_link_libraries(PermuteSequenceOfIndices ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PermuteSequenceOfIndices
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PermuteSequenceOfIndicesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PermuteSequenceOfIndices)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/PiConstant/CMakeLists.txt b/src/Core/Common/PiConstant/CMakeLists.txt
index adf01cdb1..d0403535a 100644
--- a/src/Core/Common/PiConstant/CMakeLists.txt
+++ b/src/Core/Common/PiConstant/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PiConstant Code.cxx)
-target_link_libraries(PiConstant ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PiConstant
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PiConstantTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PiConstant)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/ProduceImageProgrammatically/CMakeLists.txt b/src/Core/Common/ProduceImageProgrammatically/CMakeLists.txt
index 5cf1173ee..b0b44f1e5 100644
--- a/src/Core/Common/ProduceImageProgrammatically/CMakeLists.txt
+++ b/src/Core/Common/ProduceImageProgrammatically/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ProduceImageProgrammatically Code.cxx)
-target_link_libraries(ProduceImageProgrammatically ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ProduceImageProgrammatically
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ProduceImageProgrammaticallyTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ProduceImageProgrammatically)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/RandomSelectOfPixelsFromRegion/CMakeLists.txt b/src/Core/Common/RandomSelectOfPixelsFromRegion/CMakeLists.txt
index f3d1c74cf..9598fa488 100644
--- a/src/Core/Common/RandomSelectOfPixelsFromRegion/CMakeLists.txt
+++ b/src/Core/Common/RandomSelectOfPixelsFromRegion/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RandomSelectOfPixelsFromRegion Code.cxx)
-target_link_libraries(RandomSelectOfPixelsFromRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RandomSelectOfPixelsFromRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RandomSelectOfPixelsFromRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RandomSelectOfPixelsFromRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/CMakeLists.txt b/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/CMakeLists.txt
index c081d9d1f..02de2b3f0 100644
--- a/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/CMakeLists.txt
+++ b/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RandomSelectPixelFromRegionWithoutReplacee Code.cxx)
-target_link_libraries(RandomSelectPixelFromRegionWithoutReplacee ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RandomSelectPixelFromRegionWithoutReplacee
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RandomSelectPixelFromRegionWithoutReplaceeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RandomSelectPixelFromRegionWithoutReplacee)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/ReRunPipelineWithChangingLargestPossibleRegion/CMakeLists.txt b/src/Core/Common/ReRunPipelineWithChangingLargestPossibleRegion/CMakeLists.txt
index 746b50894..4d963b5a3 100644
--- a/src/Core/Common/ReRunPipelineWithChangingLargestPossibleRegion/CMakeLists.txt
+++ b/src/Core/Common/ReRunPipelineWithChangingLargestPossibleRegion/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ReRunPipelineWithChangingLargestPossibleRegion)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReRunPipelineWithChangingLargestPossibleRegion Code.cxx)
-target_link_libraries(ReRunPipelineWithChangingLargestPossibleRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReRunPipelineWithChangingLargestPossibleRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ReRunPipelineWithChangingLargestPossibleRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReRunPipelineWithChangingLargestPossibleRegion
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     "mri3D_%d.mha" 0 2
   )
diff --git a/src/Core/Common/ReadAPointSet/CMakeLists.txt b/src/Core/Common/ReadAPointSet/CMakeLists.txt
index 89c1888e5..5ab3839d9 100644
--- a/src/Core/Common/ReadAPointSet/CMakeLists.txt
+++ b/src/Core/Common/ReadAPointSet/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ReadAPointSet)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReadAPointSet Code.cxx)
-target_link_libraries(ReadAPointSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadAPointSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,5 +20,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ReadAPointSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadAPointSet
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 )
diff --git a/src/Core/Common/ReadWriteVectorImage/CMakeLists.txt b/src/Core/Common/ReadWriteVectorImage/CMakeLists.txt
index 466577466..9794dd59f 100644
--- a/src/Core/Common/ReadWriteVectorImage/CMakeLists.txt
+++ b/src/Core/Common/ReadWriteVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ReadWriteVectorImage Code.cxx)
-target_link_libraries(ReadWriteVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadWriteVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -25,7 +25,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/mini-vector-fast.nrrd)
 set(output_image Output.nrrd)
 
 add_test(NAME ReadWriteVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadWriteVectorImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
   )
diff --git a/src/Core/Common/ReturnObjectFromFunction/CMakeLists.txt b/src/Core/Common/ReturnObjectFromFunction/CMakeLists.txt
index 7c858ad22..9e99e9b5e 100644
--- a/src/Core/Common/ReturnObjectFromFunction/CMakeLists.txt
+++ b/src/Core/Common/ReturnObjectFromFunction/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ReturnObjectFromFunction Code.cxx)
-target_link_libraries(ReturnObjectFromFunction ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReturnObjectFromFunction
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ReturnObjectFromFunctionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReturnObjectFromFunction)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/SetDefaultNumberOfThreads/CMakeLists.txt b/src/Core/Common/SetDefaultNumberOfThreads/CMakeLists.txt
index f8174babe..3aac69e58 100644
--- a/src/Core/Common/SetDefaultNumberOfThreads/CMakeLists.txt
+++ b/src/Core/Common/SetDefaultNumberOfThreads/CMakeLists.txt
@@ -5,10 +5,10 @@ project(SetDefaultNumberOfThreads)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(SetDefaultNumberOfThreads Code.cxx)
-target_link_libraries(SetDefaultNumberOfThreads ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SetDefaultNumberOfThreads
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -23,7 +23,7 @@ enable_testing()
 set(test_options 3)
 
 add_test(NAME SetDefaultNumberOfThreadsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SetDefaultNumberOfThreads
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${test_options}
 )
 
diff --git a/src/Core/Common/SetPixelValueInOneImage/CMakeLists.txt b/src/Core/Common/SetPixelValueInOneImage/CMakeLists.txt
index 693b92b19..9762141cb 100644
--- a/src/Core/Common/SetPixelValueInOneImage/CMakeLists.txt
+++ b/src/Core/Common/SetPixelValueInOneImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(SetPixelValueInOneImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(SetPixelValueInOneImage Code.cxx)
-target_link_libraries(SetPixelValueInOneImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SetPixelValueInOneImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SetPixelValueInOneImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SetPixelValueInOneImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${CMAKE_CURRENT_BINARY_DIR}/Output.png
 )
 
diff --git a/src/Core/Common/SortITKIndex/CMakeLists.txt b/src/Core/Common/SortITKIndex/CMakeLists.txt
index e4818fcc3..16593ac24 100644
--- a/src/Core/Common/SortITKIndex/CMakeLists.txt
+++ b/src/Core/Common/SortITKIndex/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SortITKIndex Code.cxx)
-target_link_libraries(SortITKIndex ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SortITKIndex
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SortITKIndexTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SortITKIndex)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Common/StoreNonPixelDataInImage/CMakeLists.txt b/src/Core/Common/StoreNonPixelDataInImage/CMakeLists.txt
index e6c575153..42b2ff7dc 100644
--- a/src/Core/Common/StoreNonPixelDataInImage/CMakeLists.txt
+++ b/src/Core/Common/StoreNonPixelDataInImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(StoreNonPixelDataInImage Code.cxx)
-target_link_libraries(StoreNonPixelDataInImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS StoreNonPixelDataInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME StoreNonPixelDataInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/StoreNonPixelDataInImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/StreamAPipeline/CMakeLists.txt b/src/Core/Common/StreamAPipeline/CMakeLists.txt
index 9c2beb5a3..cfd39c1cc 100644
--- a/src/Core/Common/StreamAPipeline/CMakeLists.txt
+++ b/src/Core/Common/StreamAPipeline/CMakeLists.txt
@@ -5,10 +5,10 @@ project(StreamAPipeline)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(StreamAPipeline Code.cxx)
-target_link_libraries(StreamAPipeline ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS StreamAPipeline
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME StreamAPipelineTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/StreamAPipeline
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     3
   )
 
diff --git a/src/Core/Common/ThrowException/CMakeLists.txt b/src/Core/Common/ThrowException/CMakeLists.txt
index c9b7b8a59..b97dff79b 100644
--- a/src/Core/Common/ThrowException/CMakeLists.txt
+++ b/src/Core/Common/ThrowException/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ThrowException Code.cxx)
-target_link_libraries(ThrowException ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ThrowException
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ThrowExceptionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ThrowException)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/TraceMemoryBetweenPoints/CMakeLists.txt b/src/Core/Common/TraceMemoryBetweenPoints/CMakeLists.txt
index 4e8ad42bf..f5d64eb05 100644
--- a/src/Core/Common/TraceMemoryBetweenPoints/CMakeLists.txt
+++ b/src/Core/Common/TraceMemoryBetweenPoints/CMakeLists.txt
@@ -5,10 +5,10 @@ project(TraceMemoryBetweenPoints)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(TraceMemoryBetweenPoints Code.cxx)
-target_link_libraries(TraceMemoryBetweenPoints ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TraceMemoryBetweenPoints
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TraceMemoryBetweenPointsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TraceMemoryBetweenPoints 2048000)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} 2048000)
diff --git a/src/Core/Common/TryCatchException/CMakeLists.txt b/src/Core/Common/TryCatchException/CMakeLists.txt
index 782e6e0c2..1eb27cd69 100644
--- a/src/Core/Common/TryCatchException/CMakeLists.txt
+++ b/src/Core/Common/TryCatchException/CMakeLists.txt
@@ -5,10 +5,10 @@ project(TryCatchException)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(TryCatchException Code.cxx)
-target_link_libraries(TryCatchException ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TryCatchException
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TryCatchExceptionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TryCatchException)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/UseParallelizeImageRegion/CMakeLists.txt b/src/Core/Common/UseParallelizeImageRegion/CMakeLists.txt
index 81f7d3b5c..8ad992396 100644
--- a/src/Core/Common/UseParallelizeImageRegion/CMakeLists.txt
+++ b/src/Core/Common/UseParallelizeImageRegion/CMakeLists.txt
@@ -5,10 +5,10 @@ project(UseParallelizeImageRegion)
 find_package(ITK 5.0 REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(UseParallelizeImageRegion Code.cxx)
-target_link_libraries(UseParallelizeImageRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS UseParallelizeImageRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME UseParallelizeImageRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/UseParallelizeImageRegion
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${CMAKE_CURRENT_BINARY_DIR}/CellsFluorescence1.png
   CellsFluorescence1Out.png
   )
diff --git a/src/Core/Common/VariableLengthVector/CMakeLists.txt b/src/Core/Common/VariableLengthVector/CMakeLists.txt
index c46e03f7c..4ed78da8e 100644
--- a/src/Core/Common/VariableLengthVector/CMakeLists.txt
+++ b/src/Core/Common/VariableLengthVector/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(VariableLengthVector Code.cxx)
-target_link_libraries(VariableLengthVector ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS VariableLengthVector
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VariableLengthVectorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VariableLengthVector
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Core/Common/VectorDotProduct/CMakeLists.txt b/src/Core/Common/VectorDotProduct/CMakeLists.txt
index cdbe69900..657d12ebe 100644
--- a/src/Core/Common/VectorDotProduct/CMakeLists.txt
+++ b/src/Core/Common/VectorDotProduct/CMakeLists.txt
@@ -5,10 +5,10 @@ project(VectorDotProduct)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(VectorDotProduct Code.cxx Code.py)
-target_link_libraries(VectorDotProduct ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx Code.py)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS VectorDotProduct
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME VectorDotProductTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VectorDotProduct)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME VectorDotProductTestPython
diff --git a/src/Core/Common/WatchAFilter/CMakeLists.txt b/src/Core/Common/WatchAFilter/CMakeLists.txt
index 34faa9918..591194d8c 100644
--- a/src/Core/Common/WatchAFilter/CMakeLists.txt
+++ b/src/Core/Common/WatchAFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(WatchAFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(WatchAFilter Code.cxx)
-target_link_libraries(WatchAFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WatchAFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WatchAFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WatchAFilter)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Common/WriteAPointSet/CMakeLists.txt b/src/Core/Common/WriteAPointSet/CMakeLists.txt
index 8827cdf47..b4d080796 100644
--- a/src/Core/Common/WriteAPointSet/CMakeLists.txt
+++ b/src/Core/Common/WriteAPointSet/CMakeLists.txt
@@ -5,10 +5,10 @@ project(WriteAPointSet)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(WriteAPointSet Code.cxx)
-target_link_libraries(WriteAPointSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WriteAPointSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
 )
@@ -20,5 +20,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WriteAPointSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadAPointSet
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 )
diff --git a/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/CMakeLists.txt b/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/CMakeLists.txt
index 8de18ea26..2cec9d8ef 100644
--- a/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/CMakeLists.txt
+++ b/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AddConstantToPixelsWithoutDuplicatingImage Code.cxx)
-target_link_libraries(AddConstantToPixelsWithoutDuplicatingImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AddConstantToPixelsWithoutDuplicatingImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageAdaptors
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AddConstantToPixelsWithoutDuplicatingImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AddConstantToPixelsWithoutDuplicatingImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/CMakeLists.txt b/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/CMakeLists.txt
index d366ff5b6..80feef15e 100644
--- a/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/CMakeLists.txt
+++ b/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ExtractChannelOfImageWithMultipleComponents Code.cxx)
-target_link_libraries(ExtractChannelOfImageWithMultipleComponents ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractChannelOfImageWithMultipleComponents
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageAdaptors
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractChannelOfImageWithMultipleComponentsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractChannelOfImageWithMultipleComponents)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/ImageAdaptors/PresentImageAfterOperation/CMakeLists.txt b/src/Core/ImageAdaptors/PresentImageAfterOperation/CMakeLists.txt
index 9396446bb..5975296f9 100644
--- a/src/Core/ImageAdaptors/PresentImageAfterOperation/CMakeLists.txt
+++ b/src/Core/ImageAdaptors/PresentImageAfterOperation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PresentImageAfterOperation Code.cxx)
-target_link_libraries(PresentImageAfterOperation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PresentImageAfterOperation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageAdaptors
   COMPONENT Runtime
   )
@@ -21,5 +21,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PresentImageAfterOperationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PresentImageAfterOperation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/CMakeLists.txt b/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/CMakeLists.txt
index 9296be8e4..502f85329 100644
--- a/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/CMakeLists.txt
+++ b/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ProcessNthComponentOfVectorImage Code.cxx)
-target_link_libraries(ProcessNthComponentOfVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ProcessNthComponentOfVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageAdaptors
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ProcessNthComponentOfVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ProcessNthComponentOfVectorImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/CMakeLists.txt b/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/CMakeLists.txt
index 3abe41fff..cbca0556f 100644
--- a/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/CMakeLists.txt
+++ b/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ViewComponentVectorImageAsScaleImage Code.cxx)
-target_link_libraries(ViewComponentVectorImageAsScaleImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ViewComponentVectorImageAsScaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageAdaptors
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ViewComponentVectorImageAsScaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ViewComponentVectorImageAsScaleImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/CMakeLists.txt b/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/CMakeLists.txt
index 4d2e39aab..c35b84eea 100644
--- a/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/CMakeLists.txt
+++ b/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeMedianOfImageAtPixel Code.cxx)
-target_link_libraries(ComputeMedianOfImageAtPixel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeMedianOfImageAtPixel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageFunction
   COMPONENT Runtime
   )
@@ -22,6 +22,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeMedianOfImageAtPixelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeMedianOfImageAtPixel
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 
   )
\ No newline at end of file
diff --git a/src/Core/ImageFunction/LinearlyInterpolatePositionInImage/CMakeLists.txt b/src/Core/ImageFunction/LinearlyInterpolatePositionInImage/CMakeLists.txt
index f668b61e0..1e7cf31e4 100644
--- a/src/Core/ImageFunction/LinearlyInterpolatePositionInImage/CMakeLists.txt
+++ b/src/Core/ImageFunction/LinearlyInterpolatePositionInImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(LinearlyInterpolatePositionInImage Code.cxx)
-target_link_libraries(LinearlyInterpolatePositionInImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS LinearlyInterpolatePositionInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageFunction
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME LinearlyInterpolatePositionInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LinearlyInterpolatePositionInImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/CMakeLists.txt b/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/CMakeLists.txt
index 612e31dea..503c673ba 100644
--- a/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/CMakeLists.txt
+++ b/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultiplyKernelWithAnImageAtLocation Code.cxx)
-target_link_libraries(MultiplyKernelWithAnImageAtLocation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultiplyKernelWithAnImageAtLocation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageFunction
   COMPONENT Runtime
   )
@@ -22,6 +22,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultiplyKernelWithAnImageAtLocationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultiplyKernelWithAnImageAtLocation
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
diff --git a/src/Core/ImageFunction/ResampleSegmentedImage/CMakeLists.txt b/src/Core/ImageFunction/ResampleSegmentedImage/CMakeLists.txt
index 20d2bedaf..198f00652 100644
--- a/src/Core/ImageFunction/ResampleSegmentedImage/CMakeLists.txt
+++ b/src/Core/ImageFunction/ResampleSegmentedImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ResampleSegmentedImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ResampleSegmentedImage Code.cxx)
-target_link_libraries(ResampleSegmentedImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ResampleSegmentedImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/ImageFunction
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ResampleSegmentedImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleSegmentedImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${CMAKE_CURRENT_BINARY_DIR}/2th_cthead1.png
   0.75
   0.6
diff --git a/src/Core/Mesh/AccessDataInCells/CMakeLists.txt b/src/Core/Mesh/AccessDataInCells/CMakeLists.txt
index 394819ca6..3b3032926 100644
--- a/src/Core/Mesh/AccessDataInCells/CMakeLists.txt
+++ b/src/Core/Mesh/AccessDataInCells/CMakeLists.txt
@@ -5,10 +5,10 @@ project(AccessDataInCells)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(AccessDataInCells Code.cxx)
-target_link_libraries(AccessDataInCells ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AccessDataInCells
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -21,7 +21,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME AccessDataInCellsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AccessDataInCells)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME AccessDataInCellsTestPython
diff --git a/src/Core/Mesh/AddPointsAndEdges/CMakeLists.txt b/src/Core/Mesh/AddPointsAndEdges/CMakeLists.txt
index 894ccf101..70c5acb28 100644
--- a/src/Core/Mesh/AddPointsAndEdges/CMakeLists.txt
+++ b/src/Core/Mesh/AddPointsAndEdges/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AddPointsAndEdges Code.cxx)
-target_link_libraries(AddPointsAndEdges ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AddPointsAndEdges
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AddPointsAndEdgesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AddPointsAndEdges)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Mesh/CalculateAreaAndVolumeOfSimplexMesh/CMakeLists.txt b/src/Core/Mesh/CalculateAreaAndVolumeOfSimplexMesh/CMakeLists.txt
index 229d89aea..3a6cf0827 100644
--- a/src/Core/Mesh/CalculateAreaAndVolumeOfSimplexMesh/CMakeLists.txt
+++ b/src/Core/Mesh/CalculateAreaAndVolumeOfSimplexMesh/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CalculateAreaAndVolumeOfSimplexMesh Code.cxx)
-target_link_libraries(CalculateAreaAndVolumeOfSimplexMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CalculateAreaAndVolumeOfSimplexMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CalculateAreaAndVolumeOfSimplexMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CalculateAreaAndVolumeOfSimplexMesh)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt b/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt
index 683a77350..4e1e6da77 100644
--- a/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt
+++ b/src/Core/Mesh/ConvertMeshToUnstructeredGrid/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(ConvertMeshToUnstructeredGrid Code.cxx)
-target_link_libraries(ConvertMeshToUnstructeredGrid ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS ConvertMeshToUnstructeredGrid
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -43,5 +43,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertMeshToUnstructeredGridTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertMeshToUnstructeredGrid)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Mesh/ConvertTriangleMeshToBinaryImage/CMakeLists.txt b/src/Core/Mesh/ConvertTriangleMeshToBinaryImage/CMakeLists.txt
index 3a1019982..7071466e4 100644
--- a/src/Core/Mesh/ConvertTriangleMeshToBinaryImage/CMakeLists.txt
+++ b/src/Core/Mesh/ConvertTriangleMeshToBinaryImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConvertTriangleMeshToBinaryImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConvertTriangleMeshToBinaryImage Code.cxx)
-target_link_libraries(ConvertTriangleMeshToBinaryImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertTriangleMeshToBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertTriangleMeshToBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertTriangleMeshToBinaryImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     ${CMAKE_CURRENT_BINARY_DIR}/torus.vtk
     ${CMAKE_CURRENT_BINARY_DIR}/Output.mha
diff --git a/src/Core/Mesh/ExtractIsoSurface/CMakeLists.txt b/src/Core/Mesh/ExtractIsoSurface/CMakeLists.txt
index ec349fe90..cf6af8e9f 100644
--- a/src/Core/Mesh/ExtractIsoSurface/CMakeLists.txt
+++ b/src/Core/Mesh/ExtractIsoSurface/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ExtractIsoSurface)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ExtractIsoSurface Code.cxx)
-target_link_libraries(ExtractIsoSurface ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractIsoSurface
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractIsoSurfaceTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractIsoSurface
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     ${CMAKE_CURRENT_BINARY_DIR}/Output.vtk
     64
diff --git a/src/Core/Mesh/TranslateOneMesh/CMakeLists.txt b/src/Core/Mesh/TranslateOneMesh/CMakeLists.txt
index ac3df7a65..984e50809 100644
--- a/src/Core/Mesh/TranslateOneMesh/CMakeLists.txt
+++ b/src/Core/Mesh/TranslateOneMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(TranslateOneMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(TranslateOneMesh Code.cxx)
-target_link_libraries(TranslateOneMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TranslateOneMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TranslateOneMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TranslateOneMesh
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/genusZeroSurface01.vtk
     ${CMAKE_CURRENT_BINARY_DIR}/Output.vtk
 
diff --git a/src/Core/Mesh/WorkingWithPointAndCellData/CMakeLists.txt b/src/Core/Mesh/WorkingWithPointAndCellData/CMakeLists.txt
index 93b9f662e..a0120d8cf 100644
--- a/src/Core/Mesh/WorkingWithPointAndCellData/CMakeLists.txt
+++ b/src/Core/Mesh/WorkingWithPointAndCellData/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(WorkingWithPointAndCellData Code.cxx)
-target_link_libraries(WorkingWithPointAndCellData ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WorkingWithPointAndCellData
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WorkingWithPointAndCellDataTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WorkingWithPointAndCellData)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Mesh/WriteMeshToVTP/CMakeLists.txt b/src/Core/Mesh/WriteMeshToVTP/CMakeLists.txt
index c445b745c..6a776d2ac 100644
--- a/src/Core/Mesh/WriteMeshToVTP/CMakeLists.txt
+++ b/src/Core/Mesh/WriteMeshToVTP/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(WriteMeshToVTP Code.cxx)
-target_link_libraries(WriteMeshToVTP ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WriteMeshToVTP
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Mesh
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WriteMeshToVTPTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WriteMeshToVTP)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/QuadEdgeMesh/CreateTriangularQuadEdgeMesh/CMakeLists.txt b/src/Core/QuadEdgeMesh/CreateTriangularQuadEdgeMesh/CMakeLists.txt
index 3ae470a76..e21756411 100644
--- a/src/Core/QuadEdgeMesh/CreateTriangularQuadEdgeMesh/CMakeLists.txt
+++ b/src/Core/QuadEdgeMesh/CreateTriangularQuadEdgeMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateTriangularQuadEdgeMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateTriangularQuadEdgeMesh Code.cxx)
-target_link_libraries(CreateTriangularQuadEdgeMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateTriangularQuadEdgeMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/QuadEdgeMesh
   COMPONENT Runtime
   )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateTriangularQuadEdgeMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateTriangularQuadEdgeMesh
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Output.vtk
   )
diff --git a/src/Core/QuadEdgeMesh/CutMesh/CMakeLists.txt b/src/Core/QuadEdgeMesh/CutMesh/CMakeLists.txt
index 413ea968b..f8383f1c2 100644
--- a/src/Core/QuadEdgeMesh/CutMesh/CMakeLists.txt
+++ b/src/Core/QuadEdgeMesh/CutMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CutMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CutMesh Code.cxx)
-target_link_libraries(CutMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CutMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/QuadEdgeMesh
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CutMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CutMesh
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/genusZeroSurface01.vtk
     CutMeshTestOutput.vtk
 )
diff --git a/src/Core/QuadEdgeMesh/ExtractVertexOnMeshBoundaries/CMakeLists.txt b/src/Core/QuadEdgeMesh/ExtractVertexOnMeshBoundaries/CMakeLists.txt
index 8ff9d2a3f..0e013aef5 100644
--- a/src/Core/QuadEdgeMesh/ExtractVertexOnMeshBoundaries/CMakeLists.txt
+++ b/src/Core/QuadEdgeMesh/ExtractVertexOnMeshBoundaries/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ExtractVertexOnMeshBoundaries)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ExtractVertexOnMeshBoundaries Code.cxx)
-target_link_libraries(ExtractVertexOnMeshBoundaries ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractVertexOnMeshBoundaries
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/QuadEdgeMesh
   COMPONENT Runtime
   )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractVertexOnMeshBoundariesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractVertexOnMeshBoundaries
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/wave.vtk
 )
diff --git a/src/Core/QuadEdgeMesh/GetListOfFacesAroundAGivenVertex/CMakeLists.txt b/src/Core/QuadEdgeMesh/GetListOfFacesAroundAGivenVertex/CMakeLists.txt
index e415be775..e0e8e4e13 100644
--- a/src/Core/QuadEdgeMesh/GetListOfFacesAroundAGivenVertex/CMakeLists.txt
+++ b/src/Core/QuadEdgeMesh/GetListOfFacesAroundAGivenVertex/CMakeLists.txt
@@ -5,10 +5,10 @@ project(GetListOfFacesAroundAGivenVertex)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(GetListOfFacesAroundAGivenVertex Code.cxx)
-target_link_libraries(GetListOfFacesAroundAGivenVertex ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GetListOfFacesAroundAGivenVertex
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/QuadEdgeMesh
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GetListOfFacesAroundAGivenVertexTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GetListOfFacesAroundAGivenVertex ${CMAKE_CURRENT_BINARY_DIR}/genusZeroSurface01.vtk 0)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} ${CMAKE_CURRENT_BINARY_DIR}/genusZeroSurface01.vtk 0)
diff --git a/src/Core/QuadEdgeMesh/PrintVertexNeighbors/CMakeLists.txt b/src/Core/QuadEdgeMesh/PrintVertexNeighbors/CMakeLists.txt
index 017c1340b..7c53c6ef7 100644
--- a/src/Core/QuadEdgeMesh/PrintVertexNeighbors/CMakeLists.txt
+++ b/src/Core/QuadEdgeMesh/PrintVertexNeighbors/CMakeLists.txt
@@ -5,10 +5,10 @@ project(PrintVertexNeighbors)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(PrintVertexNeighbors Code.cxx)
-target_link_libraries(PrintVertexNeighbors ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PrintVertexNeighbors
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/QuadEdgeMesh
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PrintVertexNeighborsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PrintVertexNeighbors ${CMAKE_CURRENT_BINARY_DIR}/wave.vtk 50)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} ${CMAKE_CURRENT_BINARY_DIR}/wave.vtk 50)
diff --git a/src/Core/SpatialObjects/Blob/CMakeLists.txt b/src/Core/SpatialObjects/Blob/CMakeLists.txt
index f49b8f920..c1fabe193 100644
--- a/src/Core/SpatialObjects/Blob/CMakeLists.txt
+++ b/src/Core/SpatialObjects/Blob/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(Blob Code.cxx)
-target_link_libraries(Blob ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Blob
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/SpatialObjects
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BlobTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Blob)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt b/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt
index b2ec931f6..237a36201 100644
--- a/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt
+++ b/src/Core/SpatialObjects/ContourSpatialObject/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ContourSpatialObject Code.cxx)
-  target_link_libraries(ContourSpatialObject ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ContourSpatialObject Code.cxx)
-  target_link_libraries(ContourSpatialObject ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ContourSpatialObject
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/SpatialObjects
   COMPONENT Runtime
   )
@@ -42,4 +42,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ContourSpatialObjectTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ContourSpatialObject)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/SpatialObjects/ConvertSpatialObjectToImage/CMakeLists.txt b/src/Core/SpatialObjects/ConvertSpatialObjectToImage/CMakeLists.txt
index b0de77b8a..937b8c3ec 100644
--- a/src/Core/SpatialObjects/ConvertSpatialObjectToImage/CMakeLists.txt
+++ b/src/Core/SpatialObjects/ConvertSpatialObjectToImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertSpatialObjectToImage Code.cxx)
-target_link_libraries(ConvertSpatialObjectToImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertSpatialObjectToImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/SpatialObjects
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertSpatialObjectToImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertSpatialObjectToImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     output.png)
diff --git a/src/Core/SpatialObjects/CreateALineSpatialObject/CMakeLists.txt b/src/Core/SpatialObjects/CreateALineSpatialObject/CMakeLists.txt
index 00f89d08a..f8436f3b4 100644
--- a/src/Core/SpatialObjects/CreateALineSpatialObject/CMakeLists.txt
+++ b/src/Core/SpatialObjects/CreateALineSpatialObject/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateALineSpatialObject Code.cxx)
-target_link_libraries(CreateALineSpatialObject ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateALineSpatialObject
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/SpatialObjects
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateALineSpatialObjectTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateALineSpatialObject)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/SpatialObjects/Ellipse/CMakeLists.txt b/src/Core/SpatialObjects/Ellipse/CMakeLists.txt
index 8e78e39c0..63de3710a 100644
--- a/src/Core/SpatialObjects/Ellipse/CMakeLists.txt
+++ b/src/Core/SpatialObjects/Ellipse/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(Ellipse Code.cxx)
-target_link_libraries(Ellipse ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Ellipse
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/SpatialObjects
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME EllipseTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Ellipse
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     output.png)
diff --git a/src/Core/TestKernel/GenerateRandomImage/CMakeLists.txt b/src/Core/TestKernel/GenerateRandomImage/CMakeLists.txt
index 8053fbabd..99a52891d 100644
--- a/src/Core/TestKernel/GenerateRandomImage/CMakeLists.txt
+++ b/src/Core/TestKernel/GenerateRandomImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(GenerateRandomImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(GenerateRandomImage Code.cxx)
-target_link_libraries(GenerateRandomImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GenerateRandomImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/TestKernel
   COMPONENT Runtime
 )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GenerateRandomImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GenerateRandomImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Output.png
   )
diff --git a/src/Core/Transform/ApplyAffineTransformFromHomogeneousMatrixAndResample/CMakeLists.txt b/src/Core/Transform/ApplyAffineTransformFromHomogeneousMatrixAndResample/CMakeLists.txt
index 10ef24adb..52a7737bf 100644
--- a/src/Core/Transform/ApplyAffineTransformFromHomogeneousMatrixAndResample/CMakeLists.txt
+++ b/src/Core/Transform/ApplyAffineTransformFromHomogeneousMatrixAndResample/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyAffineTransformFromHomogeneousMatrixAndResample)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyAffineTransformFromHomogeneousMatrixAndResample Code.cxx)
-target_link_libraries(ApplyAffineTransformFromHomogeneousMatrixAndResample ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyAffineTransformFromHomogeneousMatrixAndResample
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyAffineTransformFromHomogeneousMatrixAndResampleTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAffineTransformFromHomogeneousMatrixAndResample
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     0
diff --git a/src/Core/Transform/CartesianToAzimuthElevation/CMakeLists.txt b/src/Core/Transform/CartesianToAzimuthElevation/CMakeLists.txt
index db8b9dd3a..fa65f12c9 100644
--- a/src/Core/Transform/CartesianToAzimuthElevation/CMakeLists.txt
+++ b/src/Core/Transform/CartesianToAzimuthElevation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CartesianToAzimuthElevation Code.cxx)
-target_link_libraries(CartesianToAzimuthElevation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CartesianToAzimuthElevation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CartesianToAzimuthElevationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CartesianToAzimuthElevation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Transform/CopyACompositeTransform/CMakeLists.txt b/src/Core/Transform/CopyACompositeTransform/CMakeLists.txt
index 71d5cd847..f78f594e4 100644
--- a/src/Core/Transform/CopyACompositeTransform/CMakeLists.txt
+++ b/src/Core/Transform/CopyACompositeTransform/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CopyACompositeTransform)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CopyACompositeTransform Code.cxx)
-target_link_libraries(CopyACompositeTransform ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CopyACompositeTransform
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CopyACompositeTransformTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CopyACompositeTransform)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Transform/CopyANonCompositeTransform/CMakeLists.txt b/src/Core/Transform/CopyANonCompositeTransform/CMakeLists.txt
index 1b617e1a9..632f60649 100644
--- a/src/Core/Transform/CopyANonCompositeTransform/CMakeLists.txt
+++ b/src/Core/Transform/CopyANonCompositeTransform/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CopyANonCompositeTransform)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CopyANonCompositeTransform Code.cxx)
-target_link_libraries(CopyANonCompositeTransform ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CopyANonCompositeTransform
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CopyANonCompositeTransformTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CopyANonCompositeTransform)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Transform/GlobalRegistrationTwoImagesAffine/CMakeLists.txt b/src/Core/Transform/GlobalRegistrationTwoImagesAffine/CMakeLists.txt
index 3fb1aba72..ad00f4d99 100644
--- a/src/Core/Transform/GlobalRegistrationTwoImagesAffine/CMakeLists.txt
+++ b/src/Core/Transform/GlobalRegistrationTwoImagesAffine/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(GlobalRegistrationTwoImagesAffine Code.cxx)
-target_link_libraries(GlobalRegistrationTwoImagesAffine ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GlobalRegistrationTwoImagesAffine
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GlobalRegistrationTwoImagesAffineTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GlobalRegistrationTwoImagesAffine)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt b/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt
index 173fde5f3..5d35756f5 100644
--- a/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt
+++ b/src/Core/Transform/GlobalRegistrationTwoImagesBSpline/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(GlobalRegistrationTwoImagesBSpline Code.cxx)
-  target_link_libraries(GlobalRegistrationTwoImagesBSpline ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(GlobalRegistrationTwoImagesBSpline Code.cxx)
-  target_link_libraries(GlobalRegistrationTwoImagesBSpline ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS GlobalRegistrationTwoImagesBSpline
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -42,4 +42,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GlobalRegistrationTwoImagesBSplineTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GlobalRegistrationTwoImagesBSpline)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Core/Transform/MutualInformationAffine/CMakeLists.txt b/src/Core/Transform/MutualInformationAffine/CMakeLists.txt
index ce8f8ed15..269ed3a1b 100644
--- a/src/Core/Transform/MutualInformationAffine/CMakeLists.txt
+++ b/src/Core/Transform/MutualInformationAffine/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MutualInformationAffine Code.cxx)
-target_link_libraries(MutualInformationAffine ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MutualInformationAffine
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MutualInformationAffineTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MutualInformationAffine
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   fixed.png
   moving.png
   Output.png)
diff --git a/src/Core/Transform/ScaleAnImage/CMakeLists.txt b/src/Core/Transform/ScaleAnImage/CMakeLists.txt
index cd8c61ffa..e9632ebb4 100644
--- a/src/Core/Transform/ScaleAnImage/CMakeLists.txt
+++ b/src/Core/Transform/ScaleAnImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ScaleAnImage Code.cxx)
-target_link_libraries(ScaleAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ScaleAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -23,7 +23,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 enable_testing()
 
 add_test(NAME ScaleAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ScaleAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/ScaleAnImageInput.png
     ${CMAKE_CURRENT_BINARY_DIR}/ScaleAnImageOutput.png
   )
diff --git a/src/Core/Transform/TranslateAVectorImage/CMakeLists.txt b/src/Core/Transform/TranslateAVectorImage/CMakeLists.txt
index 87828f33a..ef9d2cb45 100644
--- a/src/Core/Transform/TranslateAVectorImage/CMakeLists.txt
+++ b/src/Core/Transform/TranslateAVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(TranslateAVectorImage Code.cxx)
-target_link_libraries(TranslateAVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TranslateAVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TranslateAVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TranslateAVectorImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Core/Transform/TranslateImage/CMakeLists.txt b/src/Core/Transform/TranslateImage/CMakeLists.txt
index f501b577e..ada056ead 100644
--- a/src/Core/Transform/TranslateImage/CMakeLists.txt
+++ b/src/Core/Transform/TranslateImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(TranslateImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(TranslateImage Code.cxx)
-target_link_libraries(TranslateImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TranslateImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Transform
   COMPONENT Runtime
   )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TranslateImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TranslateImage ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png Output.png 25. 50.)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png Output.png 25. 50.)
diff --git a/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt
index 2b8b7e002..ce4e02d8d 100644
--- a/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt
+++ b/src/Filtering/AnisotropicSmoothing/ComputeCurvatureAnisotropicDiffusion/CMakeLists.txt
@@ -9,10 +9,10 @@ project(ComputeCurvatureAnisotropicDiffusion)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeCurvatureAnisotropicDiffusion Code.cxx)
-target_link_libraries(ComputeCurvatureAnisotropicDiffusion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeCurvatureAnisotropicDiffusion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing
   COMPONENT Runtime
   )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ComputeCurvatureAnisotropicDiffusionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeCurvatureAnisotropicDiffusion
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/AnisotropicSmoothing/ComputeCurvatureFlow/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/ComputeCurvatureFlow/CMakeLists.txt
index 598cf48e7..31a831b7c 100644
--- a/src/Filtering/AnisotropicSmoothing/ComputeCurvatureFlow/CMakeLists.txt
+++ b/src/Filtering/AnisotropicSmoothing/ComputeCurvatureFlow/CMakeLists.txt
@@ -9,10 +9,10 @@ project(ComputeCurvatureFlow)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeCurvatureFlow Code.cxx)
-target_link_libraries(ComputeCurvatureFlow ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeCurvatureFlow
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing
   COMPONENT Runtime
   )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ComputeCurvatureFlowTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeCurvatureFlow
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/AnisotropicSmoothing/ComputeGradientAnisotropicDiffusion/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/ComputeGradientAnisotropicDiffusion/CMakeLists.txt
index b234693eb..5f1a46448 100644
--- a/src/Filtering/AnisotropicSmoothing/ComputeGradientAnisotropicDiffusion/CMakeLists.txt
+++ b/src/Filtering/AnisotropicSmoothing/ComputeGradientAnisotropicDiffusion/CMakeLists.txt
@@ -9,10 +9,10 @@ project(ComputeGradientAnisotropicDiffusion)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeGradientAnisotropicDiffusion Code.cxx)
-target_link_libraries(ComputeGradientAnisotropicDiffusion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeGradientAnisotropicDiffusion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing
   COMPONENT Runtime
   )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ComputeGradientAnisotropicDiffusionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeGradientAnisotropicDiffusion
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/AnisotropicSmoothing/ComputePeronaMalikAnisotropicDiffusion/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/ComputePeronaMalikAnisotropicDiffusion/CMakeLists.txt
index f2b2e7961..c18c3c43b 100644
--- a/src/Filtering/AnisotropicSmoothing/ComputePeronaMalikAnisotropicDiffusion/CMakeLists.txt
+++ b/src/Filtering/AnisotropicSmoothing/ComputePeronaMalikAnisotropicDiffusion/CMakeLists.txt
@@ -16,10 +16,10 @@ find_package(ITK REQUIRED
   )
 include(${ITK_USE_FILE})
 
-add_executable(ComputePeronaMalikAnisotropicDiffusion Code.cxx)
-target_link_libraries(ComputePeronaMalikAnisotropicDiffusion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputePeronaMalikAnisotropicDiffusion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing
   COMPONENT Runtime
 )
@@ -32,7 +32,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME ComputePeronaMalikAnisotropicDiffusionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputePeronaMalikAnisotropicDiffusion
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt
index 2665e5515..32fdc9ac2 100644
--- a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt
+++ b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothImageWhilePreservingEdges Code.cxx)
-  target_link_libraries(SmoothImageWhilePreservingEdges ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SmoothImageWhilePreservingEdges Code.cxx)
-  target_link_libraries(SmoothImageWhilePreservingEdges ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothImageWhilePreservingEdges
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing
   COMPONENT Runtime
   )
@@ -42,7 +42,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothImageWhilePreservingEdgesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothImageWhilePreservingEdges
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     4
     8)
diff --git a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt
index c36bca905..5afec35ba 100644
--- a/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt
+++ b/src/Filtering/AnisotropicSmoothing/SmoothImageWhilePreservingEdges2/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothImageWhilePreservingEdges2 Code.cxx)
-  target_link_libraries(SmoothImageWhilePreservingEdges2 ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
     )
   endif()
 else()
-  add_executable(SmoothImageWhilePreservingEdges2 Code.cxx)
-  target_link_libraries(SmoothImageWhilePreservingEdges2 ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothImageWhilePreservingEdges2
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AnisotropicSmoothing
   COMPONENT Runtime
   )
@@ -42,7 +42,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothImageWhilePreservingEdges2Test
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothImageWhilePreservingEdges2
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     10
     30)
diff --git a/src/Filtering/AntiAlias/SmoothBinaryImageBeforeSurfaceExtraction/CMakeLists.txt b/src/Filtering/AntiAlias/SmoothBinaryImageBeforeSurfaceExtraction/CMakeLists.txt
index 436b34994..2e9294a90 100644
--- a/src/Filtering/AntiAlias/SmoothBinaryImageBeforeSurfaceExtraction/CMakeLists.txt
+++ b/src/Filtering/AntiAlias/SmoothBinaryImageBeforeSurfaceExtraction/CMakeLists.txt
@@ -9,10 +9,10 @@ project(SmoothBinaryImageBeforeSurfaceExtraction)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(SmoothBinaryImageBeforeSurfaceExtraction Code.cxx)
-target_link_libraries(SmoothBinaryImageBeforeSurfaceExtraction ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SmoothBinaryImageBeforeSurfaceExtraction
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/AntiAlias
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME SmoothBinaryImageBeforeSurfaceExtractionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothBinaryImageBeforeSurfaceExtraction
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt
index bd1749b5a..7cd3c6e1d 100644
--- a/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt
+++ b/src/Filtering/BinaryMathematicalMorphology/ClosingBinaryImage/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ClosingBinaryImage Code.cxx)
-  target_link_libraries(ClosingBinaryImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ClosingBinaryImage Code.cxx)
-  target_link_libraries(ClosingBinaryImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ClosingBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/BinaryMathematicalMorphology
   COMPONENT Runtime
   )
@@ -42,5 +42,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ClosingBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ClosingBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/BinaryMathematicalMorphology/DilateABinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/DilateABinaryImage/CMakeLists.txt
index dde90a80c..77f6df8e3 100644
--- a/src/Filtering/BinaryMathematicalMorphology/DilateABinaryImage/CMakeLists.txt
+++ b/src/Filtering/BinaryMathematicalMorphology/DilateABinaryImage/CMakeLists.txt
@@ -13,11 +13,11 @@ find_package(ITK REQUIRED
 include(${ITK_USE_FILE})
 
 
-add_executable(DilateABinaryImage Code.cxx)
-target_link_libraries(DilateABinaryImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
 
-install(TARGETS DilateABinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/BinaryMathematicalMorphology/
   COMPONENT Runtime
   )
@@ -34,7 +34,7 @@ set(output_image Output.png)
 set(test_options 3)
 
 add_test(NAME DilateABinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DilateABinaryImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/BinaryMathematicalMorphology/ErodeABinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/ErodeABinaryImage/CMakeLists.txt
index edd942e78..709322d2f 100644
--- a/src/Filtering/BinaryMathematicalMorphology/ErodeABinaryImage/CMakeLists.txt
+++ b/src/Filtering/BinaryMathematicalMorphology/ErodeABinaryImage/CMakeLists.txt
@@ -16,10 +16,10 @@ find_package(ITK REQUIRED
   )
 include(${ITK_USE_FILE})
 
-add_executable(ErodeABinaryImage Code.cxx)
-target_link_libraries(ErodeABinaryImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ErodeABinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/BinaryMathematicalMorphology/
   COMPONENT Runtime
 )
@@ -32,7 +32,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME ErodeABinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ErodeABinaryImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt
index c5172727b..e1cd2cc1b 100644
--- a/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt
+++ b/src/Filtering/BinaryMathematicalMorphology/OpeningBinaryImage/CMakeLists.txt
@@ -16,8 +16,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(OpeningBinaryImage Code.cxx)
-  target_link_libraries(OpeningBinaryImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -26,11 +26,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(OpeningBinaryImage Code.cxx)
-  target_link_libraries(OpeningBinaryImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS OpeningBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/BinaryMathematicalMorphology
   COMPONENT Runtime
   )
@@ -43,4 +43,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME OpeningBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/OpeningBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt
index c284052f5..08b29eadd 100644
--- a/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt
+++ b/src/Filtering/BinaryMathematicalMorphology/PruneBinaryImage/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(PruneBinaryImage Code.cxx)
-  target_link_libraries(PruneBinaryImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(PruneBinaryImage Code.cxx)
-  target_link_libraries(PruneBinaryImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS PruneBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/BinaryMathematicalMorphology
   COMPONENT Runtime
   )
@@ -42,4 +42,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PruneBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PruneBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/BinaryMathematicalMorphology/ThinImage/CMakeLists.txt b/src/Filtering/BinaryMathematicalMorphology/ThinImage/CMakeLists.txt
index 701bfad10..71e15dc32 100644
--- a/src/Filtering/BinaryMathematicalMorphology/ThinImage/CMakeLists.txt
+++ b/src/Filtering/BinaryMathematicalMorphology/ThinImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ThinImage Code.cxx)
-target_link_libraries(ThinImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ThinImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/BinaryMathematicalMorphology
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ThinImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ThinImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
 add_test(NAME ThinImageTestPython
diff --git a/src/Filtering/Colormap/ApplyAColormapToAnImage/CMakeLists.txt b/src/Filtering/Colormap/ApplyAColormapToAnImage/CMakeLists.txt
index 78d692dec..478aa89bf 100644
--- a/src/Filtering/Colormap/ApplyAColormapToAnImage/CMakeLists.txt
+++ b/src/Filtering/Colormap/ApplyAColormapToAnImage/CMakeLists.txt
@@ -9,10 +9,10 @@ project(ApplyAColormapToAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyAColormapToAnImage Code.cxx)
-target_link_libraries(ApplyAColormapToAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyAColormapToAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Colormap
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ApplyAColormapToAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAColormapToAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/Colormap/CreateACustomColormap/CMakeLists.txt b/src/Filtering/Colormap/CreateACustomColormap/CMakeLists.txt
index f0e281689..4628b5214 100644
--- a/src/Filtering/Colormap/CreateACustomColormap/CMakeLists.txt
+++ b/src/Filtering/Colormap/CreateACustomColormap/CMakeLists.txt
@@ -9,10 +9,10 @@ project(CreateACustomColormap)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateACustomColormap Code.cxx)
-target_link_libraries(CreateACustomColormap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateACustomColormap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Colormap
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME CreateACustomColormapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateACustomColormap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   ${test_options}
diff --git a/src/Filtering/Colormap/MapScalarsIntoJetColormap/CMakeLists.txt b/src/Filtering/Colormap/MapScalarsIntoJetColormap/CMakeLists.txt
index 40875ea0e..805b45817 100644
--- a/src/Filtering/Colormap/MapScalarsIntoJetColormap/CMakeLists.txt
+++ b/src/Filtering/Colormap/MapScalarsIntoJetColormap/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MapScalarsIntoJetColormap Code.cxx)
-target_link_libraries(MapScalarsIntoJetColormap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MapScalarsIntoJetColormap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Colormap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MapScalarsIntoJetColormapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MapScalarsIntoJetColormap)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/Convolution/ColorNormalizedCorrelation/CMakeLists.txt b/src/Filtering/Convolution/ColorNormalizedCorrelation/CMakeLists.txt
index 6c36883bb..04f0a09e2 100644
--- a/src/Filtering/Convolution/ColorNormalizedCorrelation/CMakeLists.txt
+++ b/src/Filtering/Convolution/ColorNormalizedCorrelation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ColorNormalizedCorrelation Code.cxx)
-target_link_libraries(ColorNormalizedCorrelation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ColorNormalizedCorrelation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Convolution
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ColorNormalizedCorrelationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ColorNormalizedCorrelation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt b/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt
index 7e2bfbae7..69fcfe0e3 100644
--- a/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt
+++ b/src/Filtering/Convolution/ConvolveImageWithKernel/CMakeLists.txt
@@ -16,8 +16,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ConvolveImageWithKernel Code.cxx)
-  target_link_libraries(ConvolveImageWithKernel ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -26,11 +26,11 @@ if(ENABLE_QUICKVIEW)
     )
   endif()
 else()
-  add_executable(ConvolveImageWithKernel Code.cxx)
-  target_link_libraries(ConvolveImageWithKernel ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ConvolveImageWithKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Convolution
   COMPONENT Runtime
   )
@@ -43,6 +43,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvolveImageWithKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvolveImageWithKernel
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     10)
diff --git a/src/Filtering/Convolution/NormalizedCorrelation/CMakeLists.txt b/src/Filtering/Convolution/NormalizedCorrelation/CMakeLists.txt
index 2caaaf665..e869a8bf0 100644
--- a/src/Filtering/Convolution/NormalizedCorrelation/CMakeLists.txt
+++ b/src/Filtering/Convolution/NormalizedCorrelation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(NormalizedCorrelation Code.cxx)
-target_link_libraries(NormalizedCorrelation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS NormalizedCorrelation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Convolution
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME NormalizedCorrelationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NormalizedCorrelation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/CMakeLists.txt b/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/CMakeLists.txt
index 15d335478..c48b775e7 100644
--- a/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/CMakeLists.txt
+++ b/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(NormalizedCorrelationOfMaskedImage Code.cxx)
-target_link_libraries(NormalizedCorrelationOfMaskedImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS NormalizedCorrelationOfMaskedImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Convolution
   COMPONENT Runtime
   )
@@ -21,6 +21,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME NormalizedCorrelationOfMaskedImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NormalizedCorrelationOfMaskedImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 
   )
diff --git a/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/CMakeLists.txt b/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/CMakeLists.txt
index f9ae34f30..72e67778c 100644
--- a/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/CMakeLists.txt
+++ b/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(NormalizedCorrelationUsingFFT Code.cxx)
-target_link_libraries(NormalizedCorrelationUsingFFT ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS NormalizedCorrelationUsingFFT
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Convolution
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME NormalizedCorrelationUsingFFTTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NormalizedCorrelationUsingFFT)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/CMakeLists.txt b/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/CMakeLists.txt
index 610c75b64..9c68bdd77 100644
--- a/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/CMakeLists.txt
+++ b/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(NormalizedCorrelationUsingFFTWithMaskImages Code.cxx)
-target_link_libraries(NormalizedCorrelationUsingFFTWithMaskImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS NormalizedCorrelationUsingFFTWithMaskImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Convolution
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME NormalizedCorrelationUsingFFTWithMaskImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NormalizedCorrelationUsingFFTWithMaskImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt
index 034df7610..cd86c76fd 100644
--- a/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt
+++ b/src/Filtering/CurvatureFlow/BinaryMinMaxCurvatureFlow/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(BinaryMinMaxCurvatureFlow Code.cxx)
-  target_link_libraries(BinaryMinMaxCurvatureFlow ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(BinaryMinMaxCurvatureFlow Code.cxx)
-  target_link_libraries(BinaryMinMaxCurvatureFlow ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS BinaryMinMaxCurvatureFlow
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/CurvatureFlow
   COMPONENT Runtime
   )
@@ -42,6 +42,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BinaryMinMaxCurvatureFlowTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BinaryMinMaxCurvatureFlow
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     10)
diff --git a/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt
index 40673088e..a3407a3b7 100644
--- a/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt
+++ b/src/Filtering/CurvatureFlow/SmoothImageUsingCurvatureFlow/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothImageUsingCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothImageUsingCurvatureFlow ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SmoothImageUsingCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothImageUsingCurvatureFlow ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothImageUsingCurvatureFlow
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/CurvatureFlow
   COMPONENT Runtime
   )
@@ -42,6 +42,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothImageUsingCurvatureFlowTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothImageUsingCurvatureFlow
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     10)
diff --git a/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt
index 8ceffdb93..6e1920d87 100644
--- a/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt
+++ b/src/Filtering/CurvatureFlow/SmoothImageUsingMinMaxCurvatureFlow/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothImageUsingMinMaxCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothImageUsingMinMaxCurvatureFlow ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SmoothImageUsingMinMaxCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothImageUsingMinMaxCurvatureFlow ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothImageUsingMinMaxCurvatureFlow
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/CurvatureFlow
   COMPONENT Runtime
   )
@@ -42,6 +42,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothImageUsingMinMaxCurvatureFlowTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothImageUsingMinMaxCurvatureFlow
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
         Gourds.png
         5)
diff --git a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt
index 03927aa46..a9ccbef27 100644
--- a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt
+++ b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingCurvatureFlow/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothRGBImageUsingCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothRGBImageUsingCurvatureFlow ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SmoothRGBImageUsingCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothRGBImageUsingCurvatureFlow ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothRGBImageUsingCurvatureFlow
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/CurvatureFlow
   COMPONENT Runtime
   )
@@ -42,6 +42,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothRGBImageUsingCurvatureFlowTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothRGBImageUsingCurvatureFlow
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Gourds.png
     200)
diff --git a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt
index 81d4f4aea..3cfb767e1 100644
--- a/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt
+++ b/src/Filtering/CurvatureFlow/SmoothRGBImageUsingMinMaxCurvatureFlow/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothRGBImageUsingMinMaxCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothRGBImageUsingMinMaxCurvatureFlow ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SmoothRGBImageUsingMinMaxCurvatureFlow Code.cxx)
-  target_link_libraries(SmoothRGBImageUsingMinMaxCurvatureFlow ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothRGBImageUsingMinMaxCurvatureFlow
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/CurvatureFlow
   COMPONENT Runtime
   )
@@ -42,6 +42,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothRGBImageUsingMinMaxCurvatureFlowTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothRGBImageUsingMinMaxCurvatureFlow
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
         Gourds.png
         50)
diff --git a/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt b/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt
index f223fa812..04ece8bee 100644
--- a/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt
+++ b/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/CMakeLists.txt
@@ -15,8 +15,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ApproxDistanceMapOfBinary Code.cxx)
-  target_link_libraries(ApproxDistanceMapOfBinary ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -25,11 +25,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ApproxDistanceMapOfBinary Code.cxx)
-  target_link_libraries(ApproxDistanceMapOfBinary ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ApproxDistanceMapOfBinary
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/DistanceMap
   COMPONENT Runtime
   )
@@ -42,4 +42,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApproxDistanceMapOfBinaryTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApproxDistanceMapOfBinary)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt b/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt
index dc6c6f9d1..69ca4831b 100644
--- a/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt
+++ b/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(MaurerDistanceMapOfBinary Code.cxx)
-  target_link_libraries(MaurerDistanceMapOfBinary ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
    endif()
 else()
-  add_executable(MaurerDistanceMapOfBinary Code.cxx)
-  target_link_libraries(MaurerDistanceMapOfBinary ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS MaurerDistanceMapOfBinary
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/DistanceMap
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MaurerDistanceMapOfBinaryTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MaurerDistanceMapOfBinary)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt b/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt
index 2be9ce447..4c49ebe94 100644
--- a/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt
+++ b/src/Filtering/DistanceMap/MeanDistanceBetweenAllPointsOnTwoCurves/CMakeLists.txt
@@ -16,8 +16,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(MeanDistanceBetweenAllPointsOnTwoCurves Code.cxx)
-  target_link_libraries(MeanDistanceBetweenAllPointsOnTwoCurves ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -26,11 +26,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(MeanDistanceBetweenAllPointsOnTwoCurves Code.cxx)
-  target_link_libraries(MeanDistanceBetweenAllPointsOnTwoCurves ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS MeanDistanceBetweenAllPointsOnTwoCurves
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/DistanceMap
   COMPONENT Runtime
   )
@@ -43,4 +43,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MeanDistanceBetweenAllPointsOnTwoCurvesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MeanDistanceBetweenAllPointsOnTwoCurves)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt b/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt
index 1ef314a07..d661796af 100644
--- a/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt
+++ b/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SignedDistanceMapOfBinary Code.cxx)
-  target_link_libraries(SignedDistanceMapOfBinary ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SignedDistanceMapOfBinary Code.cxx)
-  target_link_libraries(SignedDistanceMapOfBinary ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SignedDistanceMapOfBinary
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/DistanceMap
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SignedDistanceMapOfBinaryTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SignedDistanceMapOfBinary)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/FFT/ComputeForwardFFT/CMakeLists.txt b/src/Filtering/FFT/ComputeForwardFFT/CMakeLists.txt
index 26498139c..6351172be 100644
--- a/src/Filtering/FFT/ComputeForwardFFT/CMakeLists.txt
+++ b/src/Filtering/FFT/ComputeForwardFFT/CMakeLists.txt
@@ -5,11 +5,11 @@ project(ComputeForwardFFT)
 find_package(ITK REQUIRED)
 
 include(${ITK_USE_FILE})
-add_executable(ComputeForwardFFT
+add_executable(${PROJECT_NAME}
   Code.cxx)
-target_link_libraries(ComputeForwardFFT ${ITK_LIBRARIES})
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeForwardFFT
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/FFT
   COMPONENT Runtime
   )
@@ -21,7 +21,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeForwardFFTTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeForwardFFT
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     OutputReal.mha
     OutputComplex.mha
diff --git a/src/Filtering/FFT/ComputeImageSpectralDensity/CMakeLists.txt b/src/Filtering/FFT/ComputeImageSpectralDensity/CMakeLists.txt
index 364799d52..1245a57b3 100644
--- a/src/Filtering/FFT/ComputeImageSpectralDensity/CMakeLists.txt
+++ b/src/Filtering/FFT/ComputeImageSpectralDensity/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeImageSpectralDensity)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeImageSpectralDensity Code.cxx)
-target_link_libraries(ComputeImageSpectralDensity ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeImageSpectralDensity
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeImageSpectralDensityTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeImageSpectralDensity
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     Output.mha
   )
diff --git a/src/Filtering/FFT/ComputeInverseFFTOfImage/CMakeLists.txt b/src/Filtering/FFT/ComputeInverseFFTOfImage/CMakeLists.txt
index 809ebe4fa..c3694e01a 100644
--- a/src/Filtering/FFT/ComputeInverseFFTOfImage/CMakeLists.txt
+++ b/src/Filtering/FFT/ComputeInverseFFTOfImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeInverseFFTOfImage Code.cxx)
-target_link_libraries(ComputeInverseFFTOfImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeInverseFFTOfImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/FFT
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeInverseFFTOfImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeInverseFFTOfImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
 add_test(NAME ComputeInverseFFTOfImageTestPython
diff --git a/src/Filtering/FFT/FilterImageInFourierDomain/CMakeLists.txt b/src/Filtering/FFT/FilterImageInFourierDomain/CMakeLists.txt
index 721fb3234..459cae84e 100644
--- a/src/Filtering/FFT/FilterImageInFourierDomain/CMakeLists.txt
+++ b/src/Filtering/FFT/FilterImageInFourierDomain/CMakeLists.txt
@@ -5,10 +5,10 @@ project(FilterImageInFourierDomain)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(FilterImageInFourierDomain Code.cxx)
-target_link_libraries(FilterImageInFourierDomain ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FilterImageInFourierDomain
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/FFT
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FilterImageInFourierDomainTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FilterImageInFourierDomain
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     Output.mha
   )
diff --git a/src/Filtering/FastMarching/ComputeGeodesicDistanceOnMesh/CMakeLists.txt b/src/Filtering/FastMarching/ComputeGeodesicDistanceOnMesh/CMakeLists.txt
index 90169339a..f981d7f31 100644
--- a/src/Filtering/FastMarching/ComputeGeodesicDistanceOnMesh/CMakeLists.txt
+++ b/src/Filtering/FastMarching/ComputeGeodesicDistanceOnMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeGeodesicDistanceOnMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeGeodesicDistanceOnMesh Code.cxx)
-target_link_libraries(ComputeGeodesicDistanceOnMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeGeodesicDistanceOnMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/FastMarching
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeGeodesicDistanceOnMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeGeodesicDistanceOnMesh
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     genusZeroSurface01.vtk
     ComputeGeodesicDistanceOnMeshOutput.vtk
 )
diff --git a/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/CMakeLists.txt b/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/CMakeLists.txt
index c9e012c9e..41139fe2c 100644
--- a/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/CMakeLists.txt
+++ b/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateDistanceMapFromSeeds)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateDistanceMapFromSeeds Code.cxx)
-target_link_libraries(CreateDistanceMapFromSeeds ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateDistanceMapFromSeeds
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/FastMarching
   COMPONENT Runtime
 )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateDistanceMapFromSeedsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateDistanceMapFromSeeds
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Output.mha
 )
diff --git a/src/Filtering/ImageCompare/AbsValueOfTwoImages/CMakeLists.txt b/src/Filtering/ImageCompare/AbsValueOfTwoImages/CMakeLists.txt
index 4e939bbc3..ac9ec12dc 100644
--- a/src/Filtering/ImageCompare/AbsValueOfTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageCompare/AbsValueOfTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AbsValueOfTwoImages Code.cxx)
-target_link_libraries(AbsValueOfTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AbsValueOfTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompare
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AbsValueOfTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AbsValueOfTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/CMakeLists.txt b/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/CMakeLists.txt
index 05198fd66..d0ba0bfd9 100644
--- a/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/CMakeLists.txt
+++ b/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CombineTwoImagesWithCheckerBoardPattern)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CombineTwoImagesWithCheckerBoardPattern Code.cxx)
-target_link_libraries(CombineTwoImagesWithCheckerBoardPattern ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CombineTwoImagesWithCheckerBoardPattern
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompare
   COMPONENT Runtime
 )
@@ -23,7 +23,7 @@ enable_testing()
 set(output_image Output.png)
 
 add_test(NAME CombineTwoImagesWithCheckerBoardPatternTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CombineTwoImagesWithCheckerBoardPattern
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${output_image}
 )
 
diff --git a/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/CMakeLists.txt b/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/CMakeLists.txt
index fac416b8f..feaeacef5 100644
--- a/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SquaredDifferenceOfTwoImages Code.cxx)
-target_link_libraries(SquaredDifferenceOfTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SquaredDifferenceOfTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompare
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SquaredDifferenceOfTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SquaredDifferenceOfTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/CMakeLists.txt b/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/CMakeLists.txt
index af351f6ed..ecb03839f 100644
--- a/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/CMakeLists.txt
+++ b/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComposeVectorFromThreeScalarImages Code.cxx)
-target_link_libraries(ComposeVectorFromThreeScalarImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComposeVectorFromThreeScalarImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompose
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComposeVectorFromThreeScalarImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComposeVectorFromThreeScalarImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageCompose/ConvertRealAndImaginaryToComplexImage/CMakeLists.txt b/src/Filtering/ImageCompose/ConvertRealAndImaginaryToComplexImage/CMakeLists.txt
index dfdca4b6d..c541f1573 100644
--- a/src/Filtering/ImageCompose/ConvertRealAndImaginaryToComplexImage/CMakeLists.txt
+++ b/src/Filtering/ImageCompose/ConvertRealAndImaginaryToComplexImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertRealAndImaginaryToComplexImage Code.cxx)
-target_link_libraries(ConvertRealAndImaginaryToComplexImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertRealAndImaginaryToComplexImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompose
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertRealAndImaginaryToComplexImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertRealAndImaginaryToComplexImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/CMakeLists.txt b/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/CMakeLists.txt
index ea63af19f..215c8a222 100644
--- a/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/CMakeLists.txt
+++ b/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateVectorImageFromScalarImages Code.cxx)
-target_link_libraries(CreateVectorImageFromScalarImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateVectorImageFromScalarImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompose
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateVectorImageFromScalarImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateVectorImageFromScalarImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageCompose/JoinImages/CMakeLists.txt b/src/Filtering/ImageCompose/JoinImages/CMakeLists.txt
index c21c56a3b..0f7a99e9d 100644
--- a/src/Filtering/ImageCompose/JoinImages/CMakeLists.txt
+++ b/src/Filtering/ImageCompose/JoinImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(JoinImages Code.cxx)
-target_link_libraries(JoinImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS JoinImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageCompose
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME JoinImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/JoinImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFeature/AdditiveGaussianNoiseImageFilter/CMakeLists.txt b/src/Filtering/ImageFeature/AdditiveGaussianNoiseImageFilter/CMakeLists.txt
index d10b952cc..bff1bb593 100644
--- a/src/Filtering/ImageFeature/AdditiveGaussianNoiseImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/AdditiveGaussianNoiseImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(AdditiveGaussianNoiseImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(AdditiveGaussianNoiseImageFilter Code.cxx)
-target_link_libraries(AdditiveGaussianNoiseImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AdditiveGaussianNoiseImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME AdditiveGaussianNoiseImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdditiveGaussianNoiseImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
   Output.png
   20
diff --git a/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/CMakeLists.txt b/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/CMakeLists.txt
index 3678a2389..96cac2786 100644
--- a/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ApplyAFilterOnlyToASpecifiedImageRegion Code.cxx)
-target_link_libraries(ApplyAFilterOnlyToASpecifiedImageRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyAFilterOnlyToASpecifiedImageRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -26,7 +26,7 @@ set(output_image Output.png)
 set(test_options)
 
 add_test(NAME ApplyAFilterOnlyToASpecifiedImageRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAFilterOnlyToASpecifiedImageRegion
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${test_options}
diff --git a/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt b/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt
index 1f2ee148e..43c404b4a 100644
--- a/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/ApplyAFilterToASpecifiedRegionOfAnImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ApplyAFilterToASpecifiedRegionOfAnImage Code.cxx)
-  target_link_libraries(ApplyAFilterToASpecifiedRegionOfAnImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ApplyAFilterToASpecifiedRegionOfAnImage Code.cxx)
-  target_link_libraries(ApplyAFilterToASpecifiedRegionOfAnImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ApplyAFilterToASpecifiedRegionOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -48,7 +48,7 @@ set(output_image Output.png)
 set(test_options)
 
 add_test(NAME ApplyAFilterOnlyToASpecifiedRegionOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAFilterOnlyToASpecifiedRegionOfAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${test_options}
diff --git a/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt b/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt
index c7ec92c9a..610182822 100644
--- a/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/BilateralFilterAnImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(BilateralFilterAnImage Code.cxx)
-  target_link_libraries(BilateralFilterAnImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(BilateralFilterAnImage Code.cxx)
-  target_link_libraries(BilateralFilterAnImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS BilateralFilterAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -44,7 +44,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BilateralFilterAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BilateralFilterAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     5
     10)
diff --git a/src/Filtering/ImageFeature/ComputeLaplacian/CMakeLists.txt b/src/Filtering/ImageFeature/ComputeLaplacian/CMakeLists.txt
index fe657662e..1064623ac 100644
--- a/src/Filtering/ImageFeature/ComputeLaplacian/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/ComputeLaplacian/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeLaplacian)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeLaplacian Code.cxx)
-target_link_libraries(ComputeLaplacian ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeLaplacian
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeLaplacianTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeLaplacian
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     Output.png
   )
diff --git a/src/Filtering/ImageFeature/DetectEdgesWithCannyEdgeDetectionFilter/CMakeLists.txt b/src/Filtering/ImageFeature/DetectEdgesWithCannyEdgeDetectionFilter/CMakeLists.txt
index 097f2421c..1599163d3 100644
--- a/src/Filtering/ImageFeature/DetectEdgesWithCannyEdgeDetectionFilter/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/DetectEdgesWithCannyEdgeDetectionFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(DetectEdgesWithCannyEdgeDetectionFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(DetectEdgesWithCannyEdgeDetectionFilter Code.cxx)
-target_link_libraries(DetectEdgesWithCannyEdgeDetectionFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DetectEdgesWithCannyEdgeDetectionFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DetectEdgesWithCannyEdgeDetectionFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DetectEdgesWithCannyEdgeDetectionFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     Output.png
     1
diff --git a/src/Filtering/ImageFeature/ExtractContoursFromImage/CMakeLists.txt b/src/Filtering/ImageFeature/ExtractContoursFromImage/CMakeLists.txt
index 1a49e14cd..ecfac63f0 100644
--- a/src/Filtering/ImageFeature/ExtractContoursFromImage/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/ExtractContoursFromImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ExtractContoursFromImage Code.cxx)
-target_link_libraries(ExtractContoursFromImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractContoursFromImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractContoursFromImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractContoursFromImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt b/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt
index 117dbddcb..fc246232f 100644
--- a/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(FindZeroCrossingsInSignedImage Code.cxx)
-  target_link_libraries(FindZeroCrossingsInSignedImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(FindZeroCrossingsInSignedImage Code.cxx)
-  target_link_libraries(FindZeroCrossingsInSignedImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS FindZeroCrossingsInSignedImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FindZeroCrossingsInSignedImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FindZeroCrossingsInSignedImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFeature/LaplacianRecursiveGaussianImageFilter/CMakeLists.txt b/src/Filtering/ImageFeature/LaplacianRecursiveGaussianImageFilter/CMakeLists.txt
index 7fe5258f2..8276fc6ce 100644
--- a/src/Filtering/ImageFeature/LaplacianRecursiveGaussianImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/LaplacianRecursiveGaussianImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(LaplacianRecursiveGaussianImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(LaplacianRecursiveGaussianImageFilter Code.cxx)
-target_link_libraries(LaplacianRecursiveGaussianImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS LaplacianRecursiveGaussianImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png)
 set(output_image Output.mha)
 
 add_test(NAME LaplacianRecursiveGaussianImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LaplacianRecursiveGaussianImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
   )
diff --git a/src/Filtering/ImageFeature/SegmentBloodVessels/CMakeLists.txt b/src/Filtering/ImageFeature/SegmentBloodVessels/CMakeLists.txt
index f457349ce..92a1f68eb 100644
--- a/src/Filtering/ImageFeature/SegmentBloodVessels/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/SegmentBloodVessels/CMakeLists.txt
@@ -6,11 +6,11 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SegmentBloodVessels Code.cxx)
-target_link_libraries(SegmentBloodVessels ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
 
-install(TARGETS SegmentBloodVessels
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -27,7 +27,7 @@ set(output_image Output.mha)
 set(sigma 2.0)
 
 add_test(NAME SegmentBloodVesselsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentBloodVessels
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${sigma}
diff --git a/src/Filtering/ImageFeature/SharpenImage/CMakeLists.txt b/src/Filtering/ImageFeature/SharpenImage/CMakeLists.txt
index 3d51c53f7..5fbb68d3a 100644
--- a/src/Filtering/ImageFeature/SharpenImage/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/SharpenImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SharpenImage Code.cxx)
-target_link_libraries(SharpenImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SharpenImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -21,5 +21,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SharpenImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SharpenImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageFeature/SobelEdgeDetectionImageFilter/CMakeLists.txt b/src/Filtering/ImageFeature/SobelEdgeDetectionImageFilter/CMakeLists.txt
index dc9b5fffd..ce41d5a51 100644
--- a/src/Filtering/ImageFeature/SobelEdgeDetectionImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/SobelEdgeDetectionImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(SobelEdgeDetectionImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(SobelEdgeDetectionImageFilter Code.cxx)
-target_link_libraries(SobelEdgeDetectionImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SobelEdgeDetectionImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png)
 set(output_image Output.mha)
 
 add_test(NAME SobelEdgeDetectionImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SobelEdgeDetectionImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
 )
diff --git a/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt b/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt
index c8ed878e0..5f9369d8a 100644
--- a/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt
+++ b/src/Filtering/ImageFeature/ZeroCrossingBasedEdgeDecor/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ZeroCrossingBasedEdgeDecor Code.cxx)
-  target_link_libraries(ZeroCrossingBasedEdgeDecor ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ZeroCrossingBasedEdgeDecor Code.cxx)
-  target_link_libraries(ZeroCrossingBasedEdgeDecor ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ZeroCrossingBasedEdgeDecor
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFeature
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ZeroCrossingBasedEdgeDecorTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ZeroCrossingBasedEdgeDecor
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
diff --git a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/CMakeLists.txt b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/CMakeLists.txt
index 97e3eb8e9..5c34bddd9 100644
--- a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/CMakeLists.txt
+++ b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ApplyKernelToEveryPixel Code.cxx)
-target_link_libraries(ApplyKernelToEveryPixel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyKernelToEveryPixel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFilterBase
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyKernelToEveryPixelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyKernelToEveryPixel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME ApplyKernelToEveryPixelTestPython
diff --git a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/CMakeLists.txt b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/CMakeLists.txt
index b39e5d155..79ff555ed 100644
--- a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/CMakeLists.txt
+++ b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ApplyKernelToEveryPixelInNonZeroImage Code.cxx)
-target_link_libraries(ApplyKernelToEveryPixelInNonZeroImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyKernelToEveryPixelInNonZeroImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFilterBase
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyKernelToEveryPixelInNonZeroImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyKernelToEveryPixelInNonZeroImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFilterBase/CastAnImageToAnotherType/CMakeLists.txt b/src/Filtering/ImageFilterBase/CastAnImageToAnotherType/CMakeLists.txt
index 50371e648..0dba9e5a4 100644
--- a/src/Filtering/ImageFilterBase/CastAnImageToAnotherType/CMakeLists.txt
+++ b/src/Filtering/ImageFilterBase/CastAnImageToAnotherType/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CastAnImageToAnotherType)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CastAnImageToAnotherType Code.cxx)
-target_link_libraries(CastAnImageToAnotherType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CastAnImageToAnotherType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFilterBase
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CastAnImageToAnotherTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CastAnImageToAnotherType
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/CorpusCallosumMeanShape.mha
     Output.png
   )
diff --git a/src/Filtering/ImageFilterBase/ComputeLocalNoise/CMakeLists.txt b/src/Filtering/ImageFilterBase/ComputeLocalNoise/CMakeLists.txt
index 2ecc87d57..ed8b090f8 100644
--- a/src/Filtering/ImageFilterBase/ComputeLocalNoise/CMakeLists.txt
+++ b/src/Filtering/ImageFilterBase/ComputeLocalNoise/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeLocalNoise Code.cxx)
-target_link_libraries(ComputeLocalNoise ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeLocalNoise
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFilterBase
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeLocalNoiseTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeLocalNoise)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt b/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt
index 249c877f1..600454bc7 100644
--- a/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CustomOperationToCorrespondingPixelsInTwoImages Code.cxx)
-target_link_libraries(CustomOperationToCorrespondingPixelsInTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CustomOperationToCorrespondingPixelsInTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFilterBase
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CustomOperationToCorrespondingPixelsInTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CustomOperationToCorrespondingPixelsInTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt b/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt
index 84c20d5ce..1f01d78df 100644
--- a/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PredefinedOperationToCorrespondingPixelsInTwoImages Code.cxx)
-target_link_libraries(PredefinedOperationToCorrespondingPixelsInTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PredefinedOperationToCorrespondingPixelsInTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFilterBase
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PredefinedOperationToCorrespondingPixelsInTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PredefinedOperationToCorrespondingPixelsInTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFusion/ColorBoundariesOfRegions/CMakeLists.txt b/src/Filtering/ImageFusion/ColorBoundariesOfRegions/CMakeLists.txt
index a6528e54e..08b2cca24 100644
--- a/src/Filtering/ImageFusion/ColorBoundariesOfRegions/CMakeLists.txt
+++ b/src/Filtering/ImageFusion/ColorBoundariesOfRegions/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ColorBoundariesOfRegions Code.cxx)
-target_link_libraries(ColorBoundariesOfRegions ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ColorBoundariesOfRegions
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFusion
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ColorBoundariesOfRegionsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ColorBoundariesOfRegions)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFusion/ColorLabeledRegions/CMakeLists.txt b/src/Filtering/ImageFusion/ColorLabeledRegions/CMakeLists.txt
index bd78868e5..dd84c5b75 100644
--- a/src/Filtering/ImageFusion/ColorLabeledRegions/CMakeLists.txt
+++ b/src/Filtering/ImageFusion/ColorLabeledRegions/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ColorLabeledRegions Code.cxx)
-target_link_libraries(ColorLabeledRegions ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ColorLabeledRegions
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFusion
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ColorLabeledRegionsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ColorLabeledRegions)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageFusion/OverlayLabelMapOnImage/CMakeLists.txt b/src/Filtering/ImageFusion/OverlayLabelMapOnImage/CMakeLists.txt
index 8453c7863..722078ea2 100644
--- a/src/Filtering/ImageFusion/OverlayLabelMapOnImage/CMakeLists.txt
+++ b/src/Filtering/ImageFusion/OverlayLabelMapOnImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(OverlayLabelMapOnImage Code.cxx)
-target_link_libraries(OverlayLabelMapOnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS OverlayLabelMapOnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFusion
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME OverlayLabelMapOnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/OverlayLabelMapOnImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/CMakeLists.txt b/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/CMakeLists.txt
index b77c15310..c4ad12c8a 100644
--- a/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/CMakeLists.txt
+++ b/src/Filtering/ImageFusion/OverlayLabelMapOnTopOfAnImage/CMakeLists.txt
@@ -4,10 +4,10 @@ project(OverlayLabelMapOnTopOfAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(OverlayLabelMapOnTopOfAnImage Code.cxx)
-target_link_libraries(OverlayLabelMapOnTopOfAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS OverlayLabelMapOnTopOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageFusion
   COMPONENT Runtime
   )
@@ -27,7 +27,7 @@ set(input_images
 set(output_image Output.png)
 
 add_test(NAME OverlayLabelMapOnTopOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/OverlayLabelMapOnTopOfAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_images}
     ${output_image}
   )
diff --git a/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussian/CMakeLists.txt b/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussian/CMakeLists.txt
index fb8c2a38f..02beabfe0 100644
--- a/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussian/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussian/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyGradientRecursiveGaussian)
 find_package(ITK 4.7.0 REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyGradientRecursiveGaussian Code.cxx)
-target_link_libraries(ApplyGradientRecursiveGaussian ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyGradientRecursiveGaussian
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient/
   COMPONENT Runtime
   )
@@ -25,7 +25,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png)
 set(output_image OutputX.png OutputY.png OutputMagnitude.png)
 
 add_test(NAME ApplyGradientRecursiveGaussianTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyGradientRecursiveGaussian
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   )
diff --git a/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussianWithVectorInput/CMakeLists.txt b/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussianWithVectorInput/CMakeLists.txt
index 9e045e891..e3aeddbe3 100644
--- a/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussianWithVectorInput/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/ApplyGradientRecursiveGaussianWithVectorInput/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyGradientRecursiveGaussianWithVectorInput)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyGradientRecursiveGaussianWithVectorInput Code.cxx)
-target_link_libraries(ApplyGradientRecursiveGaussianWithVectorInput ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyGradientRecursiveGaussianWithVectorInput
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient/
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png)
 set(output_image Output1X.png Output1Y.png Output2X.png Output2Y.png)
 
 add_test(NAME ApplyGradientRecursiveGaussianWithVectorInputTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyGradientRecursiveGaussianWithVectorInput
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
   )
diff --git a/src/Filtering/ImageGradient/ComputeAndDisplayGradient/CMakeLists.txt b/src/Filtering/ImageGradient/ComputeAndDisplayGradient/CMakeLists.txt
index 813f524a6..038eef9dd 100644
--- a/src/Filtering/ImageGradient/ComputeAndDisplayGradient/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/ComputeAndDisplayGradient/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeAndDisplayGradient Code.cxx)
-target_link_libraries(ComputeAndDisplayGradient ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeAndDisplayGradient
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeAndDisplayGradientTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeAndDisplayGradient)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageGradient/ComputeGradientMagnitude/CMakeLists.txt b/src/Filtering/ImageGradient/ComputeGradientMagnitude/CMakeLists.txt
index a1fae5407..30c6864f2 100644
--- a/src/Filtering/ImageGradient/ComputeGradientMagnitude/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/ComputeGradientMagnitude/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeGradientMagnitude)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeGradientMagnitude Code.cxx)
-target_link_libraries(ComputeGradientMagnitude ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeGradientMagnitude
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeGradientMagnitudeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeGradientMagnitude
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     ComputeGradientMagnitudeTestOutput.mha
     )
diff --git a/src/Filtering/ImageGradient/ComputeGradientMagnitudeRecursiveGaussian/CMakeLists.txt b/src/Filtering/ImageGradient/ComputeGradientMagnitudeRecursiveGaussian/CMakeLists.txt
index 3124db767..447d4e9a6 100644
--- a/src/Filtering/ImageGradient/ComputeGradientMagnitudeRecursiveGaussian/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/ComputeGradientMagnitudeRecursiveGaussian/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeGradientMagnitudeRecursiveGaussian)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeGradientMagnitudeRecursiveGaussian Code.cxx)
-target_link_libraries(ComputeGradientMagnitudeRecursiveGaussian ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeGradientMagnitudeRecursiveGaussian
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeGradientMagnitudeRecursiveGaussianTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeGradientMagnitudeRecursiveGaussian
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     ComputeGradientMagnitudeRecursiveGaussianTestOutput.mha
     2.
diff --git a/src/Filtering/ImageGradient/GradientOfVectorImage/CMakeLists.txt b/src/Filtering/ImageGradient/GradientOfVectorImage/CMakeLists.txt
index a1f18e691..b6acbc552 100644
--- a/src/Filtering/ImageGradient/GradientOfVectorImage/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/GradientOfVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(GradientOfVectorImage Code.cxx)
-target_link_libraries(GradientOfVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GradientOfVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GradientOfVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GradientOfVectorImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageGradient/ImplementationOfSnakes/CMakeLists.txt b/src/Filtering/ImageGradient/ImplementationOfSnakes/CMakeLists.txt
index c573d9ce1..51a578980 100644
--- a/src/Filtering/ImageGradient/ImplementationOfSnakes/CMakeLists.txt
+++ b/src/Filtering/ImageGradient/ImplementationOfSnakes/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ImplementationOfSnakes Code.cxx)
-target_link_libraries(ImplementationOfSnakes ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ImplementationOfSnakes
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGradient
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ImplementationOfSnakesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ImplementationOfSnakes)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageGrid/AppendTwo3DVolumes/CMakeLists.txt b/src/Filtering/ImageGrid/AppendTwo3DVolumes/CMakeLists.txt
index 019f697cf..5deed777b 100644
--- a/src/Filtering/ImageGrid/AppendTwo3DVolumes/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/AppendTwo3DVolumes/CMakeLists.txt
@@ -5,10 +5,10 @@ project(AppendTwo3DVolumes)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(AppendTwo3DVolumes Code.cxx)
-target_link_libraries(AppendTwo3DVolumes ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AppendTwo3DVolumes
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AppendTwo3DVolumesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppendTwo3DVolumes
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     Output.mha
diff --git a/src/Filtering/ImageGrid/ChangeImageOriginSpacingOrDirection/CMakeLists.txt b/src/Filtering/ImageGrid/ChangeImageOriginSpacingOrDirection/CMakeLists.txt
index ae80d2eaa..eeed27752 100644
--- a/src/Filtering/ImageGrid/ChangeImageOriginSpacingOrDirection/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ChangeImageOriginSpacingOrDirection/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ChangeImageOriginSpacingOrDirection)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ChangeImageOriginSpacingOrDirection Code.cxx)
-target_link_libraries(ChangeImageOriginSpacingOrDirection ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ChangeImageOriginSpacingOrDirection
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ChangeImageOriginSpacingOrDirectionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ChangeImageOriginSpacingOrDirection
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
   0.7
   8.4
diff --git a/src/Filtering/ImageGrid/Create3DVolume/CMakeLists.txt b/src/Filtering/ImageGrid/Create3DVolume/CMakeLists.txt
index f738ab285..77dc5f987 100644
--- a/src/Filtering/ImageGrid/Create3DVolume/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/Create3DVolume/CMakeLists.txt
@@ -5,11 +5,11 @@ project(Create3DVolume)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(Create3DVolume
+add_executable(${PROJECT_NAME}
   Code.cxx)
-target_link_libraries(Create3DVolume ${ITK_LIBRARIES})
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Create3DVolume
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -21,7 +21,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME Create3DVolumeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Create3DVolume
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/mri3D_0.mha
     ${CMAKE_CURRENT_BINARY_DIR}/mri3D_1.mha
     ${CMAKE_CURRENT_BINARY_DIR}/mri3D_2.mha
diff --git a/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt b/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt
index 0fbf0aa7d..32d02e892 100644
--- a/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/CropImageBySpecifyingRegion2/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(CropImageBySpecifyingRegion2 Code.cxx)
-  target_link_libraries(CropImageBySpecifyingRegion2 ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(CropImageBySpecifyingRegion2 Code.cxx)
-  target_link_libraries(CropImageBySpecifyingRegion2 ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS CropImageBySpecifyingRegion2
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CropImageBySpecifyingRegion2Test
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CropImageBySpecifyingRegion2)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageGrid/ExtractRegionOfInterestInOneImage/CMakeLists.txt b/src/Filtering/ImageGrid/ExtractRegionOfInterestInOneImage/CMakeLists.txt
index 4e06c844f..ee15f919a 100644
--- a/src/Filtering/ImageGrid/ExtractRegionOfInterestInOneImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ExtractRegionOfInterestInOneImage/CMakeLists.txt
@@ -4,10 +4,10 @@ project(ExtractRegionOfInterestInOneImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ExtractRegionOfInterestInOneImage Code.cxx)
-target_link_libraries(ExtractRegionOfInterestInOneImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractRegionOfInterestInOneImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -19,7 +19,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractRegionOfInterestInOneImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractRegionOfInterestInOneImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     50 150
diff --git a/src/Filtering/ImageGrid/FitSplineIntoPointSet/CMakeLists.txt b/src/Filtering/ImageGrid/FitSplineIntoPointSet/CMakeLists.txt
index 89c4fb9c5..415b24444 100644
--- a/src/Filtering/ImageGrid/FitSplineIntoPointSet/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/FitSplineIntoPointSet/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(FitSplineIntoPointSet Code.cxx)
-target_link_libraries(FitSplineIntoPointSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FitSplineIntoPointSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FitSplineIntoPointSetTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FitSplineIntoPointSet)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageGrid/FlipAnImageOverSpecifiedAxes/CMakeLists.txt b/src/Filtering/ImageGrid/FlipAnImageOverSpecifiedAxes/CMakeLists.txt
index 71c69bfc4..e632e7e49 100644
--- a/src/Filtering/ImageGrid/FlipAnImageOverSpecifiedAxes/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/FlipAnImageOverSpecifiedAxes/CMakeLists.txt
@@ -5,10 +5,10 @@ project(FlipAnImageOverSpecifiedAxes)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(FlipAnImageOverSpecifiedAxes Code.cxx)
-target_link_libraries(FlipAnImageOverSpecifiedAxes ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS FlipAnImageOverSpecifiedAxes
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png)
 set(output_image Output.png)
 
 add_test(NAME FlipAnImageOverSpecifiedAxesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FlipAnImageOverSpecifiedAxes
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     0
diff --git a/src/Filtering/ImageGrid/PadAnImageByMirroring/CMakeLists.txt b/src/Filtering/ImageGrid/PadAnImageByMirroring/CMakeLists.txt
index fbe3d53c2..2fd5d7d87 100644
--- a/src/Filtering/ImageGrid/PadAnImageByMirroring/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/PadAnImageByMirroring/CMakeLists.txt
@@ -5,10 +5,10 @@ project(PadAnImageByMirroring)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(PadAnImageByMirroring Code.cxx)
-target_link_libraries(PadAnImageByMirroring ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PadAnImageByMirroring
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PadAnImageByMirroringTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PadAnImageByMirroring
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
 )
diff --git a/src/Filtering/ImageGrid/PadAnImageWithAConstant/CMakeLists.txt b/src/Filtering/ImageGrid/PadAnImageWithAConstant/CMakeLists.txt
index 3dad44099..85a2a0e95 100644
--- a/src/Filtering/ImageGrid/PadAnImageWithAConstant/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/PadAnImageWithAConstant/CMakeLists.txt
@@ -5,10 +5,10 @@ project(PadAnImageWithAConstant)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(PadAnImageWithAConstant Code.cxx)
-target_link_libraries(PadAnImageWithAConstant ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PadAnImageWithAConstant
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PadAnImageWithAConstantTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PadAnImageWithAConstant
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     10
diff --git a/src/Filtering/ImageGrid/PadImageByWrapping/CMakeLists.txt b/src/Filtering/ImageGrid/PadImageByWrapping/CMakeLists.txt
index 00d863ed4..1db740fd8 100644
--- a/src/Filtering/ImageGrid/PadImageByWrapping/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/PadImageByWrapping/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PadImageByWrapping Code.cxx)
-target_link_libraries(PadImageByWrapping ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PadImageByWrapping
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PadImageByWrappingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PadImageByWrapping)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageGrid/PasteImageIntoAnotherOne/CMakeLists.txt b/src/Filtering/ImageGrid/PasteImageIntoAnotherOne/CMakeLists.txt
index f335e7fd9..601cf81a9 100644
--- a/src/Filtering/ImageGrid/PasteImageIntoAnotherOne/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/PasteImageIntoAnotherOne/CMakeLists.txt
@@ -5,10 +5,10 @@ project(PasteImageIntoAnotherOne)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(PasteImageIntoAnotherOne Code.cxx)
-target_link_libraries(PasteImageIntoAnotherOne ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PasteImageIntoAnotherOne
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PasteImageIntoAnotherOneTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PasteImageIntoAnotherOne
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
diff --git a/src/Filtering/ImageGrid/PermuteAxesOfAnImage/CMakeLists.txt b/src/Filtering/ImageGrid/PermuteAxesOfAnImage/CMakeLists.txt
index d38cbcece..c28f0a580 100644
--- a/src/Filtering/ImageGrid/PermuteAxesOfAnImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/PermuteAxesOfAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(PermuteAxesOfAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(PermuteAxesOfAnImage Code.cxx)
-target_link_libraries(PermuteAxesOfAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PermuteAxesOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PermuteAxesOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PermuteAxesOfAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
 )
diff --git a/src/Filtering/ImageGrid/ProcessA2DSliceOfA3DImage/CMakeLists.txt b/src/Filtering/ImageGrid/ProcessA2DSliceOfA3DImage/CMakeLists.txt
index c98a6325a..884b8388d 100644
--- a/src/Filtering/ImageGrid/ProcessA2DSliceOfA3DImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ProcessA2DSliceOfA3DImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ProcessA2DSliceOfA3DImage Code.cxx)
-target_link_libraries(ProcessA2DSliceOfA3DImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ProcessA2DSliceOfA3DImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Core/Common
   COMPONENT Runtime
   )
@@ -26,7 +26,7 @@ set(output_image Output.mha)
 set(test_options 232) # slice number
 
 add_test(NAME ProcessA2DSliceOfA3DImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ProcessA2DSliceOfA3DImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${test_options}
diff --git a/src/Filtering/ImageGrid/ResampleAScalarImage/CMakeLists.txt b/src/Filtering/ImageGrid/ResampleAScalarImage/CMakeLists.txt
index 6ef11e01c..431b4986d 100644
--- a/src/Filtering/ImageGrid/ResampleAScalarImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ResampleAScalarImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ResampleAScalarImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ResampleAScalarImage Code.cxx)
-target_link_libraries(ResampleAScalarImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ResampleAScalarImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ResampleAScalarImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleAScalarImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     160
diff --git a/src/Filtering/ImageGrid/ResampleAVectorImage/CMakeLists.txt b/src/Filtering/ImageGrid/ResampleAVectorImage/CMakeLists.txt
index 35dc89188..5fd4535bd 100644
--- a/src/Filtering/ImageGrid/ResampleAVectorImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ResampleAVectorImage/CMakeLists.txt
@@ -8,10 +8,10 @@ project(ResampleAVectorImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ResampleAVectorImage Code.cxx)
-target_link_libraries(ResampleAVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ResampleAVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid/
   COMPONENT Runtime
   )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME ResampleAVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleAVectorImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
   )
diff --git a/src/Filtering/ImageGrid/ResampleAnImage/CMakeLists.txt b/src/Filtering/ImageGrid/ResampleAnImage/CMakeLists.txt
index f94272ddd..1df40d238 100644
--- a/src/Filtering/ImageGrid/ResampleAnImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ResampleAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ResampleAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ResampleAnImage Code.cxx)
-target_link_libraries(ResampleAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ResampleAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ResampleAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
     Output.png
     2
diff --git a/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt b/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt
index 4c8e6f6cc..6646342a4 100644
--- a/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/RunImageFilterOnRegionOfImage/CMakeLists.txt
@@ -16,8 +16,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(RunImageFilterOnRegionOfImage Code.cxx)
-  target_link_libraries(RunImageFilterOnRegionOfImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -26,11 +26,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(RunImageFilterOnRegionOfImage Code.cxx)
-  target_link_libraries(RunImageFilterOnRegionOfImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS RunImageFilterOnRegionOfImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -43,6 +43,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RunImageFilterOnRegionOfImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RunImageFilterOnRegionOfImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
         Yinyang.png
         10)
diff --git a/src/Filtering/ImageGrid/ShrinkImage/CMakeLists.txt b/src/Filtering/ImageGrid/ShrinkImage/CMakeLists.txt
index 58c220d1f..81bfdd1cb 100644
--- a/src/Filtering/ImageGrid/ShrinkImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/ShrinkImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ShrinkImage Code.cxx)
-target_link_libraries(ShrinkImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ShrinkImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ShrinkImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ShrinkImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageGrid/Stack2DImagesInto3DImage/CMakeLists.txt b/src/Filtering/ImageGrid/Stack2DImagesInto3DImage/CMakeLists.txt
index cc6c6faee..579321d86 100644
--- a/src/Filtering/ImageGrid/Stack2DImagesInto3DImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/Stack2DImagesInto3DImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(Stack2DImagesInto3DImage Code.cxx)
-target_link_libraries(Stack2DImagesInto3DImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Stack2DImagesInto3DImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 # TODO Implement input in test when Code.cxx is updated
 enable_testing()
 add_test(NAME Stack2DImagesInto3DImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Stack2DImagesInto3DImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageGrid/TileImagesSideBySide/CMakeLists.txt b/src/Filtering/ImageGrid/TileImagesSideBySide/CMakeLists.txt
index 432af4a67..0433b5a61 100644
--- a/src/Filtering/ImageGrid/TileImagesSideBySide/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/TileImagesSideBySide/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(TileImagesSideBySide Code.cxx)
-target_link_libraries(TileImagesSideBySide ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TileImagesSideBySide
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TileImagesSideBySideTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TileImagesSideBySide
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Gourds.png
     Gourds.png
     output.png
diff --git a/src/Filtering/ImageGrid/UpsampleAnImage/CMakeLists.txt b/src/Filtering/ImageGrid/UpsampleAnImage/CMakeLists.txt
index fb3df4b33..227b0f883 100644
--- a/src/Filtering/ImageGrid/UpsampleAnImage/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/UpsampleAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(UpsampleAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(UpsampleAnImage Code.cxx)
-target_link_libraries(UpsampleAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS UpsampleAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME UpsampleAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/UpsampleAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
     Output.png
     2
diff --git a/src/Filtering/ImageGrid/WarpAnImageUsingADeformationField/CMakeLists.txt b/src/Filtering/ImageGrid/WarpAnImageUsingADeformationField/CMakeLists.txt
index 32cd8a1cd..ef676f701 100644
--- a/src/Filtering/ImageGrid/WarpAnImageUsingADeformationField/CMakeLists.txt
+++ b/src/Filtering/ImageGrid/WarpAnImageUsingADeformationField/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(WarpAnImageUsingADeformationField Code.cxx)
-target_link_libraries(WarpAnImageUsingADeformationField ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WarpAnImageUsingADeformationField
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageGrid
   COMPONENT Runtime
   )
@@ -27,7 +27,7 @@ set(output_image Output.png)
 set(test_options)
 
 add_test(NAME WarpAnImageUsingADeformationFieldTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WarpAnImageUsingADeformationField
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${displacement_field_image}
     ${output_image}
diff --git a/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt b/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt
index 16b083f7f..bf629be56 100644
--- a/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/AbsValueOfImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(AbsValueOfImage Code.cxx)
-  target_link_libraries(AbsValueOfImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(AbsValueOfImage Code.cxx)
-  target_link_libraries(AbsValueOfImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS AbsValueOfImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AbsValueOfImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AbsValueOfImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/AddConstantToEveryPixel/CMakeLists.txt b/src/Filtering/ImageIntensity/AddConstantToEveryPixel/CMakeLists.txt
index 324756258..68bc9bcc9 100644
--- a/src/Filtering/ImageIntensity/AddConstantToEveryPixel/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/AddConstantToEveryPixel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AddConstantToEveryPixel Code.cxx)
-target_link_libraries(AddConstantToEveryPixel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AddConstantToEveryPixel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AddConstantToEveryPixelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AddConstantToEveryPixel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt
index e440a5937..c2e1d7285 100644
--- a/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/AddTwoImages/CMakeLists.txt
@@ -21,8 +21,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(AddTwoImages Code.cxx)
-target_link_libraries(AddTwoImages ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -31,7 +31,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS AddTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AddTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AddTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/ApplyAtanImageFilter/CMakeLists.txt b/src/Filtering/ImageIntensity/ApplyAtanImageFilter/CMakeLists.txt
index cbc708faa..1ff73ba66 100644
--- a/src/Filtering/ImageIntensity/ApplyAtanImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ApplyAtanImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyAtanImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyAtanImageFilter Code.cxx)
-target_link_libraries(ApplyAtanImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyAtanImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
 )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyAtanImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAtanImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Output.mha
 )
diff --git a/src/Filtering/ImageIntensity/ApplyCosImageFilter/CMakeLists.txt b/src/Filtering/ImageIntensity/ApplyCosImageFilter/CMakeLists.txt
index 5d18b5e2b..cd7e5ec3c 100644
--- a/src/Filtering/ImageIntensity/ApplyCosImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ApplyCosImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyCosImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyCosImageFilter Code.cxx)
-target_link_libraries(ApplyCosImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyCosImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyCosImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyCosImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Input.mha
     Output.mha
 )
diff --git a/src/Filtering/ImageIntensity/ApplyExpNegativeImageFilter/CMakeLists.txt b/src/Filtering/ImageIntensity/ApplyExpNegativeImageFilter/CMakeLists.txt
index eb9f8326a..5767a0c07 100644
--- a/src/Filtering/ImageIntensity/ApplyExpNegativeImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ApplyExpNegativeImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyExpNegativeImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyExpNegativeImageFilter Code.cxx)
-target_link_libraries(ApplyExpNegativeImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyExpNegativeImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyExpNegativeImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyExpNegativeImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.mha
     0.001
diff --git a/src/Filtering/ImageIntensity/ApplySinImageFilter/CMakeLists.txt b/src/Filtering/ImageIntensity/ApplySinImageFilter/CMakeLists.txt
index 007eae98e..f19a2de81 100644
--- a/src/Filtering/ImageIntensity/ApplySinImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ApplySinImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplySinImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplySinImageFilter Code.cxx)
-target_link_libraries(ApplySinImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplySinImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplySinImageFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplySinImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Input.mha
     Output.mha
 )
diff --git a/src/Filtering/ImageIntensity/BinaryANDTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/BinaryANDTwoImages/CMakeLists.txt
index afecc4416..0af7a1207 100644
--- a/src/Filtering/ImageIntensity/BinaryANDTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/BinaryANDTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(BinaryANDTwoImages Code.cxx)
-target_link_libraries(BinaryANDTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BinaryANDTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BinaryANDTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BinaryANDTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/BinaryORTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/BinaryORTwoImages/CMakeLists.txt
index ac2bc708b..da7737bab 100644
--- a/src/Filtering/ImageIntensity/BinaryORTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/BinaryORTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(BinaryORTwoImages Code.cxx)
-target_link_libraries(BinaryORTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BinaryORTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BinaryORTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BinaryORTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/BinaryXORTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/BinaryXORTwoImages/CMakeLists.txt
index cc499f955..d0d5fd3f3 100644
--- a/src/Filtering/ImageIntensity/BinaryXORTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/BinaryXORTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(BinaryXORTwoImages Code.cxx)
-target_link_libraries(BinaryXORTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BinaryXORTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BinaryXORTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BinaryXORTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/CastImageToAnotherTypeButClampToOutput/CMakeLists.txt b/src/Filtering/ImageIntensity/CastImageToAnotherTypeButClampToOutput/CMakeLists.txt
index 7fa51ae9e..31f309c4e 100644
--- a/src/Filtering/ImageIntensity/CastImageToAnotherTypeButClampToOutput/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/CastImageToAnotherTypeButClampToOutput/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CastImageToAnotherTypeButClampToOutput Code.cxx)
-target_link_libraries(CastImageToAnotherTypeButClampToOutput ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CastImageToAnotherTypeButClampToOutput
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CastImageToAnotherTypeButClampToOutputTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CastImageToAnotherTypeButClampToOutput)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/CMakeLists.txt b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/CMakeLists.txt
index 84db1bfbb..4c2ec9516 100644
--- a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CompareTwoImagesAndSetOutputPixelToMax Code.cxx)
-target_link_libraries(CompareTwoImagesAndSetOutputPixelToMax ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CompareTwoImagesAndSetOutputPixelToMax
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CompareTwoImagesAndSetOutputPixelToMaxTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CompareTwoImagesAndSetOutputPixelToMax)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/CMakeLists.txt b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/CMakeLists.txt
index fbe6182e1..e616963aa 100644
--- a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CompareTwoImagesAndSetOutputPixelToMin Code.cxx)
-target_link_libraries(CompareTwoImagesAndSetOutputPixelToMin ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CompareTwoImagesAndSetOutputPixelToMin
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CompareTwoImagesAndSetOutputPixelToMinTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CompareTwoImagesAndSetOutputPixelToMin)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/ComputeEdgePotential/CMakeLists.txt b/src/Filtering/ImageIntensity/ComputeEdgePotential/CMakeLists.txt
index 22fb2ab2e..6765e49bc 100644
--- a/src/Filtering/ImageIntensity/ComputeEdgePotential/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ComputeEdgePotential/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeEdgePotential Code.cxx)
-target_link_libraries(ComputeEdgePotential ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeEdgePotential
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeEdgePotentialTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeEdgePotential)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/ComputeSigmoid/CMakeLists.txt b/src/Filtering/ImageIntensity/ComputeSigmoid/CMakeLists.txt
index a8dc02615..e6cc500a4 100644
--- a/src/Filtering/ImageIntensity/ComputeSigmoid/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ComputeSigmoid/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeSigmoid)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeSigmoid Code.cxx)
-target_link_libraries(ComputeSigmoid ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeSigmoid
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeSigmoidTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeSigmoid
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
     Output.png
     10 240 10 170
diff --git a/src/Filtering/ImageIntensity/ComputerMagInVectorImageToMakeMagImage/CMakeLists.txt b/src/Filtering/ImageIntensity/ComputerMagInVectorImageToMakeMagImage/CMakeLists.txt
index 800c9412f..33b8bde4e 100644
--- a/src/Filtering/ImageIntensity/ComputerMagInVectorImageToMakeMagImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ComputerMagInVectorImageToMakeMagImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputerMagInVectorImageToMakeMagImage Code.cxx)
-target_link_libraries(ComputerMagInVectorImageToMakeMagImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputerMagInVectorImageToMakeMagImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,6 +22,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputerMagInVectorImageToMakeMagImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputerMagInVectorImageToMakeMagImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     output.png)
diff --git a/src/Filtering/ImageIntensity/ConvertRGBImageToGrayscaleImage/CMakeLists.txt b/src/Filtering/ImageIntensity/ConvertRGBImageToGrayscaleImage/CMakeLists.txt
index 319ec0bdf..30dd39949 100644
--- a/src/Filtering/ImageIntensity/ConvertRGBImageToGrayscaleImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ConvertRGBImageToGrayscaleImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConvertRGBImageToGrayscaleImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConvertRGBImageToGrayscaleImage Code.cxx)
-target_link_libraries(ConvertRGBImageToGrayscaleImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertRGBImageToGrayscaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
 )
@@ -23,7 +23,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/itk_eg_logo.png)
 set(output_image Output.png)
 
 add_test(NAME ConvertRGBImageToGrayscaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertRGBImageToGrayscaleImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
 )
diff --git a/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/CMakeLists.txt b/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/CMakeLists.txt
index 8a800005c..bf44b2c4e 100644
--- a/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ExtractComponentOfVectorImage Code.cxx)
-target_link_libraries(ExtractComponentOfVectorImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractComponentOfVectorImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractComponentOfVectorImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractComponentOfVectorImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/IntensityWindowing/CMakeLists.txt b/src/Filtering/ImageIntensity/IntensityWindowing/CMakeLists.txt
index 7f5c230f4..3f565bd04 100644
--- a/src/Filtering/ImageIntensity/IntensityWindowing/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/IntensityWindowing/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(IntensityWindowing Code.cxx)
-target_link_libraries(IntensityWindowing ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IntensityWindowing
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME IntensityWindowingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IntensityWindowing)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/InverseOfMaskToImage/CMakeLists.txt b/src/Filtering/ImageIntensity/InverseOfMaskToImage/CMakeLists.txt
index cb4096fd2..c2504f8a6 100644
--- a/src/Filtering/ImageIntensity/InverseOfMaskToImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/InverseOfMaskToImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(InverseOfMaskToImage Code.cxx)
-target_link_libraries(InverseOfMaskToImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS InverseOfMaskToImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME InverseOfMaskToImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/InverseOfMaskToImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt b/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt
index 94fc3d375..a64d63108 100644
--- a/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/InvertImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(InvertImage Code.cxx)
-  target_link_libraries(InvertImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(InvertImage Code.cxx)
-  target_link_libraries(InvertImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS InvertImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME InvertImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/InvertImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt b/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt
index c7301a173..4bfc9d6d1 100644
--- a/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/MaskImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(MaskImage Code.cxx)
-  target_link_libraries(MaskImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(MaskImage Code.cxx)
-  target_link_libraries(MaskImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS MaskImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -44,6 +44,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MaskImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MaskImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     )
diff --git a/src/Filtering/ImageIntensity/MultiplyImageByScalar/CMakeLists.txt b/src/Filtering/ImageIntensity/MultiplyImageByScalar/CMakeLists.txt
index e39e56189..899bcbf52 100644
--- a/src/Filtering/ImageIntensity/MultiplyImageByScalar/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/MultiplyImageByScalar/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MultiplyImageByScalar)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MultiplyImageByScalar Code.cxx)
-target_link_libraries(MultiplyImageByScalar ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultiplyImageByScalar
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -20,6 +20,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultiplyImageByScalarTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultiplyImageByScalar
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png 2.5 Output.mha
 )
diff --git a/src/Filtering/ImageIntensity/MultiplyTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/MultiplyTwoImages/CMakeLists.txt
index cade4fa98..309ff73e8 100644
--- a/src/Filtering/ImageIntensity/MultiplyTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/MultiplyTwoImages/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MultiplyTwoImages)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MultiplyTwoImages Code.cxx)
-target_link_libraries(MultiplyTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultiplyTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultiplyTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultiplyTwoImages
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     ${CMAKE_CURRENT_BINARY_DIR}/mask.png
     Output.mha
diff --git a/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt b/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt
index f2ecb6325..71696f461 100644
--- a/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/NormalizeImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(NormalizeImage Code.cxx)
-  target_link_libraries(NormalizeImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(NormalizeImage Code.cxx)
-  target_link_libraries(NormalizeImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS NormalizeImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME NormalizeImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NormalizeImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
diff --git a/src/Filtering/ImageIntensity/PixelDivisionOfTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/PixelDivisionOfTwoImages/CMakeLists.txt
index d285195c5..658f32fae 100644
--- a/src/Filtering/ImageIntensity/PixelDivisionOfTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/PixelDivisionOfTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PixelDivisionOfTwoImages Code.cxx)
-target_link_libraries(PixelDivisionOfTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PixelDivisionOfTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PixelDivisionOfTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PixelDivisionOfTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/RescaleIntensity/CMakeLists.txt b/src/Filtering/ImageIntensity/RescaleIntensity/CMakeLists.txt
index 287c2fc2a..460e5ead4 100644
--- a/src/Filtering/ImageIntensity/RescaleIntensity/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/RescaleIntensity/CMakeLists.txt
@@ -5,10 +5,10 @@ project(RescaleIntensity)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(RescaleIntensity Code.cxx)
-target_link_libraries(RescaleIntensity ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RescaleIntensity
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
 )
@@ -24,7 +24,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png)
 set(output_image Output.png)
 
 add_test(NAME RescaleIntensityTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RescaleIntensity
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     0
diff --git a/src/Filtering/ImageIntensity/ScalePixelSumToConstant/CMakeLists.txt b/src/Filtering/ImageIntensity/ScalePixelSumToConstant/CMakeLists.txt
index 7f987de64..3a2c81160 100644
--- a/src/Filtering/ImageIntensity/ScalePixelSumToConstant/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/ScalePixelSumToConstant/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ScalePixelSumToConstant Code.cxx)
-target_link_libraries(ScalePixelSumToConstant ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ScalePixelSumToConstant
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -24,4 +24,4 @@ enable_testing()
 
 
 add_test(NAME ScalePixelSumToConstantTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ScalePixelSumToConstant)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/SquareEveryPixel/CMakeLists.txt b/src/Filtering/ImageIntensity/SquareEveryPixel/CMakeLists.txt
index d9f8493a2..1e5fd57cf 100644
--- a/src/Filtering/ImageIntensity/SquareEveryPixel/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/SquareEveryPixel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SquareEveryPixel Code.cxx)
-target_link_libraries(SquareEveryPixel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SquareEveryPixel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SquareEveryPixelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SquareEveryPixel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/CMakeLists.txt b/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/CMakeLists.txt
index 1ab8a8a0a..19d8452ba 100644
--- a/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SubtractConstantFromEveryPixel Code.cxx)
-target_link_libraries(SubtractConstantFromEveryPixel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SubtractConstantFromEveryPixel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SubtractConstantFromEveryPixelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SubtractConstantFromEveryPixel)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt b/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt
index 71475d9d8..895c9d05f 100644
--- a/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/SubtractTwoImages/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(SubtractTwoImages Code.cxx)
-target_link_libraries(SubtractTwoImages ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS SubtractTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -43,5 +43,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SubtractTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SubtractTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageIntensity/TransformVectorValuedImagePixels/CMakeLists.txt b/src/Filtering/ImageIntensity/TransformVectorValuedImagePixels/CMakeLists.txt
index 72b1c4926..e58480fd1 100644
--- a/src/Filtering/ImageIntensity/TransformVectorValuedImagePixels/CMakeLists.txt
+++ b/src/Filtering/ImageIntensity/TransformVectorValuedImagePixels/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(TransformVectorValuedImagePixels Code.cxx)
-target_link_libraries(TransformVectorValuedImagePixels ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS TransformVectorValuedImagePixels
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageIntensity
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME TransformVectorValuedImagePixelsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/TransformVectorValuedImagePixels
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Gourds.png
     output.png
   )
diff --git a/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt b/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt
index 23a8efa99..2bb9bfd3d 100644
--- a/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt
+++ b/src/Filtering/ImageLabel/ExtractBoundariesOfConnectedRegionsInBinaryImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ExtractBoundariesOfConnectedRegionsInBinaryImage Code.cxx)
-  target_link_libraries(ExtractBoundariesOfConnectedRegionsInBinaryImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ExtractBoundariesOfConnectedRegionsInBinaryImage Code.cxx)
-  target_link_libraries(ExtractBoundariesOfConnectedRegionsInBinaryImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ExtractBoundariesOfConnectedRegionsInBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageLabel
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractBoundariesOfConnectedRegionsInBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractBoundariesOfConnectedRegionsInBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt b/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt
index 3cceb2412..510abc23c 100644
--- a/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt
+++ b/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage Code.cxx)
-  target_link_libraries(ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage Code.cxx)
-  target_link_libraries(ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageLabel
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractInnerAndOuterBoundariesOfBlobsInBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt b/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt
index 6303d1bde..cc4360c6c 100644
--- a/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt
+++ b/src/Filtering/ImageLabel/LabelContoursOfConnectComponent/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(LabelContoursOfConnectComponent Code.cxx)
-  target_link_libraries(LabelContoursOfConnectComponent ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
        )
   endif()
 else()
-  add_executable(LabelContoursOfConnectComponent Code.cxx)
-  target_link_libraries(LabelContoursOfConnectComponent ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS LabelContoursOfConnectComponent
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageLabel
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME LabelContoursOfConnectComponentTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LabelContoursOfConnectComponent)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageStatistics/AdaptiveHistogramEqualizationImageFilter/CMakeLists.txt b/src/Filtering/ImageStatistics/AdaptiveHistogramEqualizationImageFilter/CMakeLists.txt
index 8332aafb3..204333169 100644
--- a/src/Filtering/ImageStatistics/AdaptiveHistogramEqualizationImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageStatistics/AdaptiveHistogramEqualizationImageFilter/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AdaptiveHistogramEqualizationImageFilter Code.cxx)
-target_link_libraries(AdaptiveHistogramEqualizationImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AdaptiveHistogramEqualizationImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Statistics
   COMPONENT Runtime
   )
@@ -39,7 +39,7 @@ set(radius04 10)
 
 
 add_test(NAME AdaptiveHistogramEqualizationImageFilterTest01
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdaptiveHistogramEqualizationImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     AdaptiveHistogramEqualizationImageFilterTest01.png
     ${alpha01}
@@ -47,7 +47,7 @@ add_test(NAME AdaptiveHistogramEqualizationImageFilterTest01
     ${radius01}
   )
 add_test(NAME AdaptiveHistogramEqualizationImageFilterTest02
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdaptiveHistogramEqualizationImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     AdaptiveHistogramEqualizationImageFilterTest02.png
     ${alpha02}
@@ -55,7 +55,7 @@ add_test(NAME AdaptiveHistogramEqualizationImageFilterTest02
     ${radius02}
   )
 add_test(NAME AdaptiveHistogramEqualizationImageFilterTest03
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdaptiveHistogramEqualizationImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     AdaptiveHistogramEqualizationImageFilterTest03.png
     ${alpha03}
@@ -63,7 +63,7 @@ add_test(NAME AdaptiveHistogramEqualizationImageFilterTest03
     ${radius03}
   )
 add_test(NAME AdaptiveHistogramEqualizationImageFilterTest04
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdaptiveHistogramEqualizationImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     AdaptiveHistogramEqualizationImageFilterTest04.png
     ${alpha04}
@@ -71,7 +71,7 @@ add_test(NAME AdaptiveHistogramEqualizationImageFilterTest04
     ${radius01}
   )
  add_test(NAME AdaptiveHistogramEqualizationImageFilterTest05
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdaptiveHistogramEqualizationImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     AdaptiveHistogramEqualizationImageFilterTest05.png
     ${alpha05}
@@ -79,7 +79,7 @@ add_test(NAME AdaptiveHistogramEqualizationImageFilterTest04
     ${radius02}
   )
   add_test(NAME AdaptiveHistogramEqualizationImageFilterTest06
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AdaptiveHistogramEqualizationImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     AdaptiveHistogramEqualizationImageFilterTest06.png
     ${alpha05}
diff --git a/src/Filtering/ImageStatistics/ApplyAccumulateImageFilter/CMakeLists.txt b/src/Filtering/ImageStatistics/ApplyAccumulateImageFilter/CMakeLists.txt
index daaef7a8e..bfd280cb8 100644
--- a/src/Filtering/ImageStatistics/ApplyAccumulateImageFilter/CMakeLists.txt
+++ b/src/Filtering/ImageStatistics/ApplyAccumulateImageFilter/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ApplyAccumulateImageFilter)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyAccumulateImageFilter Code.cxx)
-target_link_libraries(ApplyAccumulateImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyAccumulateImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageStatistics
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ enable_testing()
 
 foreach(i RANGE 0 2)
   add_test(NAME ApplyAccumulateImageFilterTest${i}
-    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyAccumulateImageFilter
+    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
       ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
       ${CMAKE_CURRENT_BINARY_DIR}/ApplyAccumulateImageFilterTestOutput${i}.mha
       ${i}
diff --git a/src/Filtering/ImageStatistics/CalculateImageMoments/CMakeLists.txt b/src/Filtering/ImageStatistics/CalculateImageMoments/CMakeLists.txt
index 3a65f4c52..f5b223fca 100644
--- a/src/Filtering/ImageStatistics/CalculateImageMoments/CMakeLists.txt
+++ b/src/Filtering/ImageStatistics/CalculateImageMoments/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CalculateImageMoments)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CalculateImageMoments Code.cxx)
-target_link_libraries(CalculateImageMoments ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CalculateImageMoments
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKExamples/Filtering/ImageStatistics
   COMPONENT Runtime
 )
@@ -23,7 +23,7 @@ enable_testing()
 set(input_image ${CMAKE_CURRENT_BINARY_DIR}/ellipse.mha)
 
 add_test(NAME CalculateImageMomentsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CalculateImageMoments
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
 )
 
diff --git a/src/Filtering/ImageStatistics/ComputeMinMaxVarianceMeanOfImage/CMakeLists.txt b/src/Filtering/ImageStatistics/ComputeMinMaxVarianceMeanOfImage/CMakeLists.txt
index e14d1e269..25b885315 100644
--- a/src/Filtering/ImageStatistics/ComputeMinMaxVarianceMeanOfImage/CMakeLists.txt
+++ b/src/Filtering/ImageStatistics/ComputeMinMaxVarianceMeanOfImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeMinMaxVarianceMeanOfImage Code.cxx)
-target_link_libraries(ComputeMinMaxVarianceMeanOfImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeMinMaxVarianceMeanOfImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageStatistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeMinMaxVarianceMeanOfImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeMinMaxVarianceMeanOfImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageStatistics/ComputePCAShapeFromSample/CMakeLists.txt b/src/Filtering/ImageStatistics/ComputePCAShapeFromSample/CMakeLists.txt
index a4ba5486b..324fa875e 100644
--- a/src/Filtering/ImageStatistics/ComputePCAShapeFromSample/CMakeLists.txt
+++ b/src/Filtering/ImageStatistics/ComputePCAShapeFromSample/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputePCAShapeFromSample Code.cxx)
-target_link_libraries(ComputePCAShapeFromSample ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputePCAShapeFromSample
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageStatistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputePCAShapeFromSampleTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputePCAShapeFromSample)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/CMakeLists.txt b/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/CMakeLists.txt
index 584ce99d5..e03141891 100644
--- a/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/CMakeLists.txt
+++ b/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(StatisticalPropertiesOfRegions Code.cxx)
-target_link_libraries(StatisticalPropertiesOfRegions ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS StatisticalPropertiesOfRegions
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/ImageStatistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME StatisticalPropertiesOfRegionsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/StatisticalPropertiesOfRegions)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/LabelMap/ApplyMorphologicalClosingOnAllLabelObjects/CMakeLists.txt b/src/Filtering/LabelMap/ApplyMorphologicalClosingOnAllLabelObjects/CMakeLists.txt
index 44cd6bc24..9f97e5d7e 100644
--- a/src/Filtering/LabelMap/ApplyMorphologicalClosingOnAllLabelObjects/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ApplyMorphologicalClosingOnAllLabelObjects/CMakeLists.txt
@@ -4,10 +4,10 @@ project(ApplyMorphologicalClosingOnAllLabelObjects)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyMorphologicalClosingOnAllLabelObjects Code.cxx)
-target_link_libraries(ApplyMorphologicalClosingOnAllLabelObjects ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyMorphologicalClosingOnAllLabelObjects
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -19,7 +19,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyMorphologicalClosingOnAllLabelObjectsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyMorphologicalClosingOnAllLabelObjects
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/2th_cthead1.png
     Output.png
     1
diff --git a/src/Filtering/LabelMap/ApplyMorphologicalClosingOnSpecificLabelObject/CMakeLists.txt b/src/Filtering/LabelMap/ApplyMorphologicalClosingOnSpecificLabelObject/CMakeLists.txt
index 84b063e0d..3c2f34c30 100644
--- a/src/Filtering/LabelMap/ApplyMorphologicalClosingOnSpecificLabelObject/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ApplyMorphologicalClosingOnSpecificLabelObject/CMakeLists.txt
@@ -4,10 +4,10 @@ project(ApplyMorphologicalClosingOnSpecificLabelObject)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ApplyMorphologicalClosingOnSpecificLabelObject Code.cxx)
-target_link_libraries(ApplyMorphologicalClosingOnSpecificLabelObject ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ApplyMorphologicalClosingOnSpecificLabelObject
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -19,7 +19,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ApplyMorphologicalClosingOnSpecificLabelObjectTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ApplyMorphologicalClosingOnSpecificLabelObject
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/2th_cthead1.png
     Output.png
     100
diff --git a/src/Filtering/LabelMap/ConvertImageToLabelMap/CMakeLists.txt b/src/Filtering/LabelMap/ConvertImageToLabelMap/CMakeLists.txt
index 3290793f2..786ba262f 100644
--- a/src/Filtering/LabelMap/ConvertImageToLabelMap/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ConvertImageToLabelMap/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertImageToLabelMap Code.cxx)
-target_link_libraries(ConvertImageToLabelMap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertImageToLabelMap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertImageToLabelMapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertImageToLabelMap)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt b/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt
index 01cebb51c..7104c739e 100644
--- a/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertImageWithLabelsToShapeLabelMap Code.cxx)
-target_link_libraries(ConvertImageWithLabelsToShapeLabelMap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertImageWithLabelsToShapeLabelMap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertImageWithLabelsToShapeLabelMapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertImageWithLabelsToShapeLabelMap)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/LabelMap/ConvertLabelMapToImage/CMakeLists.txt b/src/Filtering/LabelMap/ConvertLabelMapToImage/CMakeLists.txt
index f0ee42b7c..48c5c7dd0 100644
--- a/src/Filtering/LabelMap/ConvertLabelMapToImage/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ConvertLabelMapToImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertLabelMapToImage Code.cxx)
-target_link_libraries(ConvertLabelMapToImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertLabelMapToImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertLabelMapToImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertLabelMapToImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/LabelMap/ExtractGivenLabelObject/CMakeLists.txt b/src/Filtering/LabelMap/ExtractGivenLabelObject/CMakeLists.txt
index 735b4d274..a5fd76c88 100644
--- a/src/Filtering/LabelMap/ExtractGivenLabelObject/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ExtractGivenLabelObject/CMakeLists.txt
@@ -4,10 +4,10 @@ project(ExtractGivenLabelObject)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ExtractGivenLabelObject Code.cxx)
-target_link_libraries(ExtractGivenLabelObject ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractGivenLabelObject
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -19,7 +19,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractGivenLabelObjectTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractGivenLabelObject
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/2th_cthead1.png
     Output1.png
     Output2.png
diff --git a/src/Filtering/LabelMap/InvertImageUsingBinaryNot/CMakeLists.txt b/src/Filtering/LabelMap/InvertImageUsingBinaryNot/CMakeLists.txt
index ecddeafda..d60b2d095 100644
--- a/src/Filtering/LabelMap/InvertImageUsingBinaryNot/CMakeLists.txt
+++ b/src/Filtering/LabelMap/InvertImageUsingBinaryNot/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(InvertImageUsingBinaryNot Code.cxx)
-target_link_libraries(InvertImageUsingBinaryNot ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS InvertImageUsingBinaryNot
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME InvertImageUsingBinaryNotTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/InvertImageUsingBinaryNot)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/LabelMap/KeepBinaryRegionsThatMeetSpecific/CMakeLists.txt b/src/Filtering/LabelMap/KeepBinaryRegionsThatMeetSpecific/CMakeLists.txt
index 3e265a9d8..66263db52 100644
--- a/src/Filtering/LabelMap/KeepBinaryRegionsThatMeetSpecific/CMakeLists.txt
+++ b/src/Filtering/LabelMap/KeepBinaryRegionsThatMeetSpecific/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(KeepBinaryRegionsThatMeetSpecific Code.cxx)
-target_link_libraries(KeepBinaryRegionsThatMeetSpecific ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS KeepBinaryRegionsThatMeetSpecific
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,6 +22,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME KeepBinaryRegionsThatMeetSpecificTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/KeepBinaryRegionsThatMeetSpecific
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
diff --git a/src/Filtering/LabelMap/KeepRegionsAboveLevel/CMakeLists.txt b/src/Filtering/LabelMap/KeepRegionsAboveLevel/CMakeLists.txt
index 1441e64f8..9bcf932c7 100644
--- a/src/Filtering/LabelMap/KeepRegionsAboveLevel/CMakeLists.txt
+++ b/src/Filtering/LabelMap/KeepRegionsAboveLevel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(KeepRegionsAboveLevel Code.cxx)
-target_link_libraries(KeepRegionsAboveLevel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS KeepRegionsAboveLevel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME KeepRegionsAboveLevelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/KeepRegionsAboveLevel
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/CMakeLists.txt b/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/CMakeLists.txt
index fb1944729..d1387a435 100644
--- a/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/CMakeLists.txt
+++ b/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(KeepRegionsThatMeetSpecific Code.cxx)
-target_link_libraries(KeepRegionsThatMeetSpecific ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS KeepRegionsThatMeetSpecific
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME KeepRegionsThatMeetSpecificTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/KeepRegionsThatMeetSpecific
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/CMakeLists.txt b/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/CMakeLists.txt
index b5cdaf69f..7761e5bce 100644
--- a/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/CMakeLists.txt
+++ b/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(LabelBinaryRegionsAndGetProperties Code.cxx)
-target_link_libraries(LabelBinaryRegionsAndGetProperties ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS LabelBinaryRegionsAndGetProperties
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME LabelBinaryRegionsAndGetPropertiesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LabelBinaryRegionsAndGetProperties)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/LabelMap/LabelBinaryRegionsInImage/CMakeLists.txt b/src/Filtering/LabelMap/LabelBinaryRegionsInImage/CMakeLists.txt
index 6bda16b42..dc8d080e9 100644
--- a/src/Filtering/LabelMap/LabelBinaryRegionsInImage/CMakeLists.txt
+++ b/src/Filtering/LabelMap/LabelBinaryRegionsInImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(LabelBinaryRegionsInImage Code.cxx)
-target_link_libraries(LabelBinaryRegionsInImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS LabelBinaryRegionsInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME LabelBinaryRegionsInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LabelBinaryRegionsInImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/LabelMap/MaskOneImageGivenLabelMap/CMakeLists.txt b/src/Filtering/LabelMap/MaskOneImageGivenLabelMap/CMakeLists.txt
index 350154a5d..a27eb483c 100644
--- a/src/Filtering/LabelMap/MaskOneImageGivenLabelMap/CMakeLists.txt
+++ b/src/Filtering/LabelMap/MaskOneImageGivenLabelMap/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MaskOneImageGivenLabelMap)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MaskOneImageGivenLabelMap Code.cxx)
-target_link_libraries(MaskOneImageGivenLabelMap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MaskOneImageGivenLabelMap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MaskOneImageGivenLabelMapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MaskOneImageGivenLabelMap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     ${CMAKE_CURRENT_BINARY_DIR}/2th_cthead1.png
     ${CMAKE_CURRENT_BINARY_DIR}/Output1.png
@@ -28,7 +28,7 @@ add_test(NAME MaskOneImageGivenLabelMapTest
     0
 )
 add_test(NAME MaskOneImageGivenLabelMapTestNegateCrop
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MaskOneImageGivenLabelMap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     ${CMAKE_CURRENT_BINARY_DIR}/2th_cthead1.png
     ${CMAKE_CURRENT_BINARY_DIR}/Output2.png
diff --git a/src/Filtering/LabelMap/MergeLabelMaps/CMakeLists.txt b/src/Filtering/LabelMap/MergeLabelMaps/CMakeLists.txt
index e9d14244f..638ec15ac 100644
--- a/src/Filtering/LabelMap/MergeLabelMaps/CMakeLists.txt
+++ b/src/Filtering/LabelMap/MergeLabelMaps/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MergeLabelMaps Code.cxx)
-target_link_libraries(MergeLabelMaps ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MergeLabelMaps
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MergeLabelMapsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MergeLabelMaps)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/LabelMap/RemoveHolesNotConnectedToImageBoundaries/CMakeLists.txt b/src/Filtering/LabelMap/RemoveHolesNotConnectedToImageBoundaries/CMakeLists.txt
index 087ae275f..7621cd6fc 100644
--- a/src/Filtering/LabelMap/RemoveHolesNotConnectedToImageBoundaries/CMakeLists.txt
+++ b/src/Filtering/LabelMap/RemoveHolesNotConnectedToImageBoundaries/CMakeLists.txt
@@ -8,10 +8,10 @@ project(RemoveHolesNotConnectedToImageBoundaries)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(RemoveHolesNotConnectedToImageBoundaries Code.cxx)
-target_link_libraries(RemoveHolesNotConnectedToImageBoundaries ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RemoveHolesNotConnectedToImageBoundaries
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap/
   COMPONENT Runtime
   )
@@ -23,7 +23,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME RemoveHolesNotConnectedToImageBoundariesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RemoveHolesNotConnectedToImageBoundaries
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image}
   ${output_image}
 )
diff --git a/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/CMakeLists.txt b/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/CMakeLists.txt
index 9d3e29bd2..d623c75c2 100644
--- a/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/CMakeLists.txt
+++ b/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RemoveLabelsFromLabelMap Code.cxx)
-target_link_libraries(RemoveLabelsFromLabelMap ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RemoveLabelsFromLabelMap
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RemoveLabelsFromLabelMapTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RemoveLabelsFromLabelMap
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Filtering/LabelMap/ShapeAttributesForBinaryImage/CMakeLists.txt b/src/Filtering/LabelMap/ShapeAttributesForBinaryImage/CMakeLists.txt
index 98235556f..339abc8d3 100644
--- a/src/Filtering/LabelMap/ShapeAttributesForBinaryImage/CMakeLists.txt
+++ b/src/Filtering/LabelMap/ShapeAttributesForBinaryImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ShapeAttributesForBinaryImage Code.cxx)
-target_link_libraries(ShapeAttributesForBinaryImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ShapeAttributesForBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/LabelMap
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ShapeAttributesForBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ShapeAttributesForBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/MathematicalMorphology/CreateABinaryBallStructuringElement/CMakeLists.txt b/src/Filtering/MathematicalMorphology/CreateABinaryBallStructuringElement/CMakeLists.txt
index bd3cf2506..00f521b80 100644
--- a/src/Filtering/MathematicalMorphology/CreateABinaryBallStructuringElement/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/CreateABinaryBallStructuringElement/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateABinaryBallStructuringElement)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateABinaryBallStructuringElement Code.cxx)
-target_link_libraries(CreateABinaryBallStructuringElement ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateABinaryBallStructuringElement
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateABinaryBallStructuringElementTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateABinaryBallStructuringElement)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/CMakeLists.txt b/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/CMakeLists.txt
index 23f849bb8..3089a4992 100644
--- a/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/CMakeLists.txt
@@ -11,10 +11,10 @@ find_package(ITK REQUIRED
   )
 include(${ITK_USE_FILE})
 
-add_executable(DilateAGrayscaleImage Code.cxx)
-target_link_libraries(DilateAGrayscaleImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DilateAGrayscaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
 )
@@ -26,7 +26,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DilateAGrayscaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DilateAGrayscaleImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     Output.png
     5
diff --git a/src/Filtering/MathematicalMorphology/ErodeAGrayscaleImage/CMakeLists.txt b/src/Filtering/MathematicalMorphology/ErodeAGrayscaleImage/CMakeLists.txt
index bf8e0d572..f1471abed 100644
--- a/src/Filtering/MathematicalMorphology/ErodeAGrayscaleImage/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/ErodeAGrayscaleImage/CMakeLists.txt
@@ -11,10 +11,10 @@ find_package(ITK REQUIRED
   )
 include(${ITK_USE_FILE})
 
-add_executable(ErodeAGrayscaleImage Code.cxx)
-target_link_libraries(ErodeAGrayscaleImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ErodeAGrayscaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
 )
@@ -26,7 +26,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ErodeAGrayscaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ErodeAGrayscaleImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     Output.png
     5
diff --git a/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt b/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt
index 5d7975cd7..d6f6ac116 100644
--- a/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/ErodeBinaryImageUsingFlatStruct/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ErodeBinaryImageUsingFlatStruct Code.cxx)
-  target_link_libraries(ErodeBinaryImageUsingFlatStruct ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
    endif()
 else()
-  add_executable(ErodeBinaryImageUsingFlatStruct Code.cxx)
-  target_link_libraries(ErodeBinaryImageUsingFlatStruct ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ErodeBinaryImageUsingFlatStruct
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
   )
@@ -44,6 +44,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ErodeBinaryImageUsingFlatStructTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ErodeBinaryImageUsingFlatStruct
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     7)
diff --git a/src/Filtering/MathematicalMorphology/GenerateStructureElementsWithAccurateArea/CMakeLists.txt b/src/Filtering/MathematicalMorphology/GenerateStructureElementsWithAccurateArea/CMakeLists.txt
index 80f40d773..57ec0402e 100644
--- a/src/Filtering/MathematicalMorphology/GenerateStructureElementsWithAccurateArea/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/GenerateStructureElementsWithAccurateArea/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(GenerateStructureElementsWithAccurateArea Code.cxx)
-target_link_libraries(GenerateStructureElementsWithAccurateArea ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GenerateStructureElementsWithAccurateArea
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GenerateStructureElementsWithAccurateAreaTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GenerateStructureElementsWithAccurateArea)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/MathematicalMorphology/RegionalMaximal/CMakeLists.txt b/src/Filtering/MathematicalMorphology/RegionalMaximal/CMakeLists.txt
index fc2be5487..50f32521f 100644
--- a/src/Filtering/MathematicalMorphology/RegionalMaximal/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/RegionalMaximal/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RegionalMaximal Code.cxx)
-target_link_libraries(RegionalMaximal ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RegionalMaximal
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RegionalMaximalTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegionalMaximal)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/MathematicalMorphology/RegionalMinimal/CMakeLists.txt b/src/Filtering/MathematicalMorphology/RegionalMinimal/CMakeLists.txt
index 45ed46801..529302056 100644
--- a/src/Filtering/MathematicalMorphology/RegionalMinimal/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/RegionalMinimal/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RegionalMinimal Code.cxx)
-target_link_libraries(RegionalMinimal ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RegionalMinimal
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RegionalMinimalTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegionalMinimal)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/MathematicalMorphology/ValuedRegionalMaximaImage/CMakeLists.txt b/src/Filtering/MathematicalMorphology/ValuedRegionalMaximaImage/CMakeLists.txt
index 4f9b9aa1f..0d11664fb 100644
--- a/src/Filtering/MathematicalMorphology/ValuedRegionalMaximaImage/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/ValuedRegionalMaximaImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ValuedRegionalMaximaImage Code.cxx)
-target_link_libraries(ValuedRegionalMaximaImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ValuedRegionalMaximaImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ValuedRegionalMaximaImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ValuedRegionalMaximaImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/MathematicalMorphology/ValuedRegionalMinimalImage/CMakeLists.txt b/src/Filtering/MathematicalMorphology/ValuedRegionalMinimalImage/CMakeLists.txt
index 0cde7e87b..39d2b1edc 100644
--- a/src/Filtering/MathematicalMorphology/ValuedRegionalMinimalImage/CMakeLists.txt
+++ b/src/Filtering/MathematicalMorphology/ValuedRegionalMinimalImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ValuedRegionalMinimalImage Code.cxx)
-target_link_libraries(ValuedRegionalMinimalImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ValuedRegionalMinimalImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/MathematicalMorphology
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ValuedRegionalMinimalImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ValuedRegionalMinimalImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/Path/DataStructureForPieceWiseLinearCurve/CMakeLists.txt b/src/Filtering/Path/DataStructureForPieceWiseLinearCurve/CMakeLists.txt
index d84ca9326..e6d519cb4 100644
--- a/src/Filtering/Path/DataStructureForPieceWiseLinearCurve/CMakeLists.txt
+++ b/src/Filtering/Path/DataStructureForPieceWiseLinearCurve/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DataStructureForPieceWiseLinearCurve Code.cxx)
-target_link_libraries(DataStructureForPieceWiseLinearCurve ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DataStructureForPieceWiseLinearCurve
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Path
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DataStructureForPieceWiseLinearCurveTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DataStructureForPieceWiseLinearCurve)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/Path/ExtractContoursFromImage/CMakeLists.txt b/src/Filtering/Path/ExtractContoursFromImage/CMakeLists.txt
index 9a1c563ef..710454346 100644
--- a/src/Filtering/Path/ExtractContoursFromImage/CMakeLists.txt
+++ b/src/Filtering/Path/ExtractContoursFromImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ExtractContoursFromImage Code.cxx)
-target_link_libraries(ExtractContoursFromImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExtractContoursFromImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Path
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtractContoursFromImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtractContoursFromImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/QuadEdgeMeshFiltering/CleanQuadEdgeMesh/CMakeLists.txt b/src/Filtering/QuadEdgeMeshFiltering/CleanQuadEdgeMesh/CMakeLists.txt
index 0acf35213..500299cad 100644
--- a/src/Filtering/QuadEdgeMeshFiltering/CleanQuadEdgeMesh/CMakeLists.txt
+++ b/src/Filtering/QuadEdgeMeshFiltering/CleanQuadEdgeMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CleanQuadEdgeMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CleanQuadEdgeMesh Code.cxx)
-target_link_libraries(CleanQuadEdgeMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CleanQuadEdgeMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/QuadEdgeMeshFiltering
   COMPONENT Runtime
 )
@@ -20,4 +20,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CleanQuadEdgeMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CleanQuadEdgeMesh)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Filtering/QuadEdgeMeshFiltering/ComputeNormalsOfAMesh/CMakeLists.txt b/src/Filtering/QuadEdgeMeshFiltering/ComputeNormalsOfAMesh/CMakeLists.txt
index 7ee5fc56d..871742f3c 100644
--- a/src/Filtering/QuadEdgeMeshFiltering/ComputeNormalsOfAMesh/CMakeLists.txt
+++ b/src/Filtering/QuadEdgeMeshFiltering/ComputeNormalsOfAMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeNormalsOfAMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeNormalsOfAMesh Code.cxx)
-target_link_libraries(ComputeNormalsOfAMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeNormalsOfAMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/QuadEdgeMeshFiltering
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeNormalsOfAMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeNormalsOfAMesh
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/genusZeroSurface01.vtk
     0
 )
diff --git a/src/Filtering/QuadEdgeMeshFiltering/ComputePlanarParameterizationOfAMesh/CMakeLists.txt b/src/Filtering/QuadEdgeMeshFiltering/ComputePlanarParameterizationOfAMesh/CMakeLists.txt
index 9dbc8c148..e768a8ae4 100644
--- a/src/Filtering/QuadEdgeMeshFiltering/ComputePlanarParameterizationOfAMesh/CMakeLists.txt
+++ b/src/Filtering/QuadEdgeMeshFiltering/ComputePlanarParameterizationOfAMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputePlanarParameterizationOfAMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputePlanarParameterizationOfAMesh Code.cxx)
-target_link_libraries(ComputePlanarParameterizationOfAMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputePlanarParameterizationOfAMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/QuadEdgeMeshFiltering
   COMPONENT Runtime
   )
diff --git a/src/Filtering/QuadEdgeMeshFiltering/DelaunayConformEdgeFlipping/CMakeLists.txt b/src/Filtering/QuadEdgeMeshFiltering/DelaunayConformEdgeFlipping/CMakeLists.txt
index c4d8fe2c3..f843df61f 100644
--- a/src/Filtering/QuadEdgeMeshFiltering/DelaunayConformEdgeFlipping/CMakeLists.txt
+++ b/src/Filtering/QuadEdgeMeshFiltering/DelaunayConformEdgeFlipping/CMakeLists.txt
@@ -5,10 +5,10 @@ project(DelaunayConformEdgeFlipping)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(DelaunayConformEdgeFlipping Code.cxx)
-target_link_libraries(DelaunayConformEdgeFlipping ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DelaunayConformEdgeFlipping
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/QuadEdgeMeshFiltering
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DelaunayConformEdgeFlippingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DelaunayConformEdgeFlipping
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   mushroom.vtk
   Output.vtk
 )
diff --git a/src/Filtering/Smoothing/BlurringAnImageUsingABinomialKernel/CMakeLists.txt b/src/Filtering/Smoothing/BlurringAnImageUsingABinomialKernel/CMakeLists.txt
index 5a1ace008..a6a1ce9f8 100644
--- a/src/Filtering/Smoothing/BlurringAnImageUsingABinomialKernel/CMakeLists.txt
+++ b/src/Filtering/Smoothing/BlurringAnImageUsingABinomialKernel/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(BlurringAnImageUsingABinomialKernel Code.cxx)
-target_link_libraries(BlurringAnImageUsingABinomialKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BlurringAnImageUsingABinomialKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
   )
@@ -26,7 +26,7 @@ set(output_image Output.png)
 set(test_options 5)
 
 add_test(NAME BlurringAnImageUsingABinomialKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BlurringAnImageUsingABinomialKernel
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${test_options}
diff --git a/src/Filtering/Smoothing/ComputesSmoothingWithGaussianKernel/CMakeLists.txt b/src/Filtering/Smoothing/ComputesSmoothingWithGaussianKernel/CMakeLists.txt
index b172d8d6a..ffd27e99d 100644
--- a/src/Filtering/Smoothing/ComputesSmoothingWithGaussianKernel/CMakeLists.txt
+++ b/src/Filtering/Smoothing/ComputesSmoothingWithGaussianKernel/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputesSmoothingWithGaussianKernel)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputesSmoothingWithGaussianKernel Code.cxx)
-target_link_libraries(ComputesSmoothingWithGaussianKernel ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputesSmoothingWithGaussianKernel
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputesSmoothingWithGaussianKernelTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputesSmoothingWithGaussianKernel
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
     Output.png
     3
diff --git a/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt b/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt
index b085fedaa..60af0d166 100644
--- a/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt
+++ b/src/Filtering/Smoothing/FindHigherDerivativesOfImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(FindHigherDerivativesOfImage Code.cxx)
-  target_link_libraries(FindHigherDerivativesOfImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(FindHigherDerivativesOfImage Code.cxx)
-  target_link_libraries(FindHigherDerivativesOfImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS FindHigherDerivativesOfImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME FindHigherDerivativesOfImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/FindHigherDerivativesOfImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
diff --git a/src/Filtering/Smoothing/MeanFilteringOfAnImage/CMakeLists.txt b/src/Filtering/Smoothing/MeanFilteringOfAnImage/CMakeLists.txt
index 13d8a8dd7..8aaf50e28 100644
--- a/src/Filtering/Smoothing/MeanFilteringOfAnImage/CMakeLists.txt
+++ b/src/Filtering/Smoothing/MeanFilteringOfAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MeanFilteringOfAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MeanFilteringOfAnImage Code.cxx)
-target_link_libraries(MeanFilteringOfAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MeanFilteringOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MeanFilteringOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MeanFilteringOfAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     2
diff --git a/src/Filtering/Smoothing/MedianFilteringOfAnImage/CMakeLists.txt b/src/Filtering/Smoothing/MedianFilteringOfAnImage/CMakeLists.txt
index 19f7db16b..53a02d8c0 100644
--- a/src/Filtering/Smoothing/MedianFilteringOfAnImage/CMakeLists.txt
+++ b/src/Filtering/Smoothing/MedianFilteringOfAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MedianFilteringOfAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MedianFilteringOfAnImage Code.cxx)
-target_link_libraries(MedianFilteringOfAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MedianFilteringOfAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MedianFilteringOfAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MedianFilteringOfAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     2
diff --git a/src/Filtering/Smoothing/MedianFilteringOfAnRGBImage/CMakeLists.txt b/src/Filtering/Smoothing/MedianFilteringOfAnRGBImage/CMakeLists.txt
index 22bfc0d2d..9dda96757 100644
--- a/src/Filtering/Smoothing/MedianFilteringOfAnRGBImage/CMakeLists.txt
+++ b/src/Filtering/Smoothing/MedianFilteringOfAnRGBImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(MedianFilteringOfAnRGBImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(MedianFilteringOfAnRGBImage Code.cxx)
-target_link_libraries(MedianFilteringOfAnRGBImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MedianFilteringOfAnRGBImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MedianFilteringOfAnRGBImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MedianFilteringOfAnRGBImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/GourdsRGB.png
     Output.png
     2
diff --git a/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt b/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt
index b977f99de..1f8f9db67 100644
--- a/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt
+++ b/src/Filtering/Smoothing/SmoothImageWithDiscreteGaussianFilter/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SmoothImageWithDiscreteGaussianFilter Code.cxx)
-  target_link_libraries(SmoothImageWithDiscreteGaussianFilter ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SmoothImageWithDiscreteGaussianFilter Code.cxx)
-  target_link_libraries(SmoothImageWithDiscreteGaussianFilter ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SmoothImageWithDiscreteGaussianFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Smoothing
   COMPONENT Runtime
   )
@@ -44,6 +44,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SmoothImageWithDiscreteGaussianFilterTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SmoothImageWithDiscreteGaussianFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     8)
diff --git a/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt b/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt
index 6d0624188..e82f2ac0a 100644
--- a/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt
+++ b/src/Filtering/Thresholding/DemonstrateThresholdAlgorithms/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(DemonstrateThresholdAlgorithms Code.cxx)
-  target_link_libraries(DemonstrateThresholdAlgorithms ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(DemonstrateThresholdAlgorithms Code.cxx)
-  target_link_libraries(DemonstrateThresholdAlgorithms ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS DemonstrateThresholdAlgorithms
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Thresholding
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DemonstrateThresholdAlgorithmsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DemonstrateThresholdAlgorithms
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
diff --git a/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt b/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt
index 21995a529..5fdc76658 100644
--- a/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt
+++ b/src/Filtering/Thresholding/SeparateGroundUsingOtsu/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SeparateGroundUsingOtsu Code.cxx)
-  target_link_libraries(SeparateGroundUsingOtsu ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SeparateGroundUsingOtsu Code.cxx)
-  target_link_libraries(SeparateGroundUsingOtsu ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SeparateGroundUsingOtsu
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Thresholding
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SeparateGroundUsingOtsuTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SeparateGroundUsingOtsu)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Filtering/Thresholding/ThresholdAnImage/CMakeLists.txt b/src/Filtering/Thresholding/ThresholdAnImage/CMakeLists.txt
index a2d9e1946..3d18410b8 100644
--- a/src/Filtering/Thresholding/ThresholdAnImage/CMakeLists.txt
+++ b/src/Filtering/Thresholding/ThresholdAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ThresholdAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ThresholdAnImage Code.cxx)
-target_link_libraries(ThresholdAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ThresholdAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Thresholding
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ThresholdAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ThresholdAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     ${CMAKE_CURRENT_BINARY_DIR}/Output.png
     64
diff --git a/src/Filtering/Thresholding/ThresholdAnImageUsingBinary/CMakeLists.txt b/src/Filtering/Thresholding/ThresholdAnImageUsingBinary/CMakeLists.txt
index 2caa5ddde..11144f2c4 100644
--- a/src/Filtering/Thresholding/ThresholdAnImageUsingBinary/CMakeLists.txt
+++ b/src/Filtering/Thresholding/ThresholdAnImageUsingBinary/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ThresholdAnImageUsingBinary)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ThresholdAnImageUsingBinary Code.cxx)
-target_link_libraries(ThresholdAnImageUsingBinary ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ThresholdAnImageUsingBinary
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Thresholding
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ThresholdAnImageUsingBinaryTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ThresholdAnImageUsingBinary
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/cthead1.png
     Output.png
     50
diff --git a/src/Filtering/Thresholding/ThresholdAnImageUsingOtsu/CMakeLists.txt b/src/Filtering/Thresholding/ThresholdAnImageUsingOtsu/CMakeLists.txt
index 37e591476..07660af4a 100644
--- a/src/Filtering/Thresholding/ThresholdAnImageUsingOtsu/CMakeLists.txt
+++ b/src/Filtering/Thresholding/ThresholdAnImageUsingOtsu/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ThresholdAnImageUsingOtsu)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ThresholdAnImageUsingOtsu Code.cxx)
-target_link_libraries(ThresholdAnImageUsingOtsu ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ThresholdAnImageUsingOtsu
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Filtering/Thresholding
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ThresholdAnImageUsingOtsuTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ThresholdAnImageUsingOtsu
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.png
     64
diff --git a/src/IO/GDCM/ReadAndPrintDICOMTags/CMakeLists.txt b/src/IO/GDCM/ReadAndPrintDICOMTags/CMakeLists.txt
index 99daf60e8..edb94bfbb 100644
--- a/src/IO/GDCM/ReadAndPrintDICOMTags/CMakeLists.txt
+++ b/src/IO/GDCM/ReadAndPrintDICOMTags/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ReadAndPrintDICOMTags)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReadAndPrintDICOMTags Code.cxx)
-target_link_libraries(ReadAndPrintDICOMTags ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadAndPrintDICOMTags
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/GDCM
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ReadAndPrintDICOMTagsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadAndPrintDICOMTags
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   "${CMAKE_CURRENT_BINARY_DIR}"
 )
 
diff --git a/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/CMakeLists.txt b/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/CMakeLists.txt
index a92df13b7..25a73a9bc 100644
--- a/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/CMakeLists.txt
+++ b/src/IO/GDCM/ReadDICOMSeriesAndWrite3DImage/CMakeLists.txt
@@ -4,10 +4,10 @@ project(ReadDICOMSeriesAndWrite3DImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReadDICOMSeriesAndWrite3DImage Code.cxx)
-target_link_libraries(ReadDICOMSeriesAndWrite3DImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadDICOMSeriesAndWrite3DImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/GDCM
   COMPONENT Runtime
   )
@@ -19,7 +19,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME ReadDICOMSeriesAndWrite3DImage
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadDICOMSeriesAndWrite3DImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     "${CMAKE_CURRENT_BINARY_DIR}"
     "${CMAKE_CURRENT_BINARY_DIR}/Image3D.nrrd"
     )
diff --git a/src/IO/GDCM/ResampleDICOMSeries/CMakeLists.txt b/src/IO/GDCM/ResampleDICOMSeries/CMakeLists.txt
index d81d09d04..741642c0e 100644
--- a/src/IO/GDCM/ResampleDICOMSeries/CMakeLists.txt
+++ b/src/IO/GDCM/ResampleDICOMSeries/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ResampleDICOMSeries Code.cxx)
-target_link_libraries(ResampleDICOMSeries ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ResampleDICOMSeries
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/GDCM
   COMPONENT Runtime
   )
@@ -22,6 +22,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ResampleDICOMSeriesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ResampleDICOMSeries
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 
   )
diff --git a/src/IO/ImageBase/ConvertFileFormats/CMakeLists.txt b/src/IO/ImageBase/ConvertFileFormats/CMakeLists.txt
index 5003deef4..831841bcd 100644
--- a/src/IO/ImageBase/ConvertFileFormats/CMakeLists.txt
+++ b/src/IO/ImageBase/ConvertFileFormats/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConvertFileFormats)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConvertFileFormats Code.cxx)
-target_link_libraries(ConvertFileFormats ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertFileFormats
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertFileFormatsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertFileFormats
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     ${CMAKE_CURRENT_BINARY_DIR}/Output.jpg
   )
diff --git a/src/IO/ImageBase/ConvertImageToAnotherType/CMakeLists.txt b/src/IO/ImageBase/ConvertImageToAnotherType/CMakeLists.txt
index e77ca9e30..132128a2c 100644
--- a/src/IO/ImageBase/ConvertImageToAnotherType/CMakeLists.txt
+++ b/src/IO/ImageBase/ConvertImageToAnotherType/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConvertImageToAnotherType Code.cxx)
-target_link_libraries(ConvertImageToAnotherType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertImageToAnotherType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase
   COMPONENT Runtime
   )
@@ -21,6 +21,6 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertImageToAnotherTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertImageToAnotherType
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 
diff --git a/src/IO/ImageBase/Create3DFromSeriesOf2D/CMakeLists.txt b/src/IO/ImageBase/Create3DFromSeriesOf2D/CMakeLists.txt
index 9c5ea4415..2bd7681d2 100644
--- a/src/IO/ImageBase/Create3DFromSeriesOf2D/CMakeLists.txt
+++ b/src/IO/ImageBase/Create3DFromSeriesOf2D/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(Create3DFromSeriesOf2D Code.cxx)
-target_link_libraries(Create3DFromSeriesOf2D ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Create3DFromSeriesOf2D
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME Create3DFromSeriesOf2DTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Create3DFromSeriesOf2D)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/IO/ImageBase/CreateAListOfFileNames/CMakeLists.txt b/src/IO/ImageBase/CreateAListOfFileNames/CMakeLists.txt
index d4c0433ac..74e5feecd 100644
--- a/src/IO/ImageBase/CreateAListOfFileNames/CMakeLists.txt
+++ b/src/IO/ImageBase/CreateAListOfFileNames/CMakeLists.txt
@@ -5,10 +5,10 @@ project(CreateAListOfFileNames)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(CreateAListOfFileNames Code.cxx)
-target_link_libraries(CreateAListOfFileNames ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateAListOfFileNames
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateAListOfFileNamesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateAListOfFileNames)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
 add_test(NAME CreateAListOfFileNamesTestPython
diff --git a/src/IO/ImageBase/GenerateSlicesFromVolume/CMakeLists.txt b/src/IO/ImageBase/GenerateSlicesFromVolume/CMakeLists.txt
index 3a3e26d34..28ef8ea0c 100644
--- a/src/IO/ImageBase/GenerateSlicesFromVolume/CMakeLists.txt
+++ b/src/IO/ImageBase/GenerateSlicesFromVolume/CMakeLists.txt
@@ -15,10 +15,10 @@ find_package(ITK REQUIRED
   )
 include(${ITK_USE_FILE})
 
-add_executable(GenerateSlicesFromVolume Code.cxx)
-target_link_libraries(GenerateSlicesFromVolume ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GenerateSlicesFromVolume
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase/
   COMPONENT Runtime
   )
@@ -31,7 +31,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME GenerateSlicesFromVolumeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GenerateSlicesFromVolume
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
 )
diff --git a/src/IO/ImageBase/ProcessImageChunks/CMakeLists.txt b/src/IO/ImageBase/ProcessImageChunks/CMakeLists.txt
index 7e4ad41cb..b06fe5057 100644
--- a/src/IO/ImageBase/ProcessImageChunks/CMakeLists.txt
+++ b/src/IO/ImageBase/ProcessImageChunks/CMakeLists.txt
@@ -12,10 +12,10 @@ find_package(ITK REQUIRED
   )
 include(${ITK_USE_FILE})
 
-add_executable(ProcessImageChunks Code.cxx)
-target_link_libraries(ProcessImageChunks ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ProcessImageChunks
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase/
   COMPONENT Runtime
   )
@@ -28,7 +28,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 enable_testing()
 
 add_test(NAME ProcessImageChunksTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ProcessImageChunks
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
     Output.mha
 )
diff --git a/src/IO/ImageBase/ReadAnImage/CMakeLists.txt b/src/IO/ImageBase/ReadAnImage/CMakeLists.txt
index faf7e7419..ddccf08e1 100644
--- a/src/IO/ImageBase/ReadAnImage/CMakeLists.txt
+++ b/src/IO/ImageBase/ReadAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ReadAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReadAnImage Code.cxx)
-target_link_libraries(ReadAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase/
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png)
 
 enable_testing()
 add_test(NAME ReadAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadAnImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
   )
 
diff --git a/src/IO/ImageBase/ReadUnknownImageType/CMakeLists.txt b/src/IO/ImageBase/ReadUnknownImageType/CMakeLists.txt
index 22360fed0..510a9d000 100644
--- a/src/IO/ImageBase/ReadUnknownImageType/CMakeLists.txt
+++ b/src/IO/ImageBase/ReadUnknownImageType/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ReadUnknownImageType)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReadUnknownImageType Code.cxx)
-target_link_libraries(ReadUnknownImageType ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadUnknownImageType
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase
   COMPONENT Runtime
   )
@@ -20,11 +20,11 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ReadUnknownImageTypeTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadUnknownImageType
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Gourds.png
   )
 
 add_test(NAME ReadUnknownImageTypeTest1
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadUnknownImageType
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
   )
diff --git a/src/IO/ImageBase/RegisterIOFactories/CMakeLists.txt b/src/IO/ImageBase/RegisterIOFactories/CMakeLists.txt
index 0b3e33140..4aa5830ec 100644
--- a/src/IO/ImageBase/RegisterIOFactories/CMakeLists.txt
+++ b/src/IO/ImageBase/RegisterIOFactories/CMakeLists.txt
@@ -9,10 +9,10 @@ find_package(ITK REQUIRED)
 set(ITK_NO_IMAGEIO_FACTORY_REGISTER_MANAGER 1)
 include(${ITK_USE_FILE})
 
-add_executable(RegisterIOFactories Code.cxx)
-target_link_libraries(RegisterIOFactories ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RegisterIOFactories
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/ImageBase
   COMPONENT Runtime
   )
@@ -24,7 +24,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME RegisterIOFactoriesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegisterIOFactories
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/HeadMRVolume.mha
     ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png
   )
diff --git a/src/IO/ImageBase/WriteAnImage/CMakeLists.txt b/src/IO/ImageBase/WriteAnImage/CMakeLists.txt
index a1606a793..fe948ed95 100644
--- a/src/IO/ImageBase/WriteAnImage/CMakeLists.txt
+++ b/src/IO/ImageBase/WriteAnImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(WriteAnImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(WriteAnImage Code.cxx)
-target_link_libraries(WriteAnImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WriteAnImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Base/
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WriteAnImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WriteAnImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME WriteAnImageTestPython
diff --git a/src/IO/Mesh/ReadMesh/CMakeLists.txt b/src/IO/Mesh/ReadMesh/CMakeLists.txt
index 6ca5de4fc..bde743446 100644
--- a/src/IO/Mesh/ReadMesh/CMakeLists.txt
+++ b/src/IO/Mesh/ReadMesh/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ReadMesh)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ReadMesh Code.cxx)
-target_link_libraries(ReadMesh ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadMesh
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/Mesh
   COMPONENT Runtime
   )
@@ -21,6 +21,6 @@ install(FILES Code.cxx CMakeLists.txt
 enable_testing()
 
 add_test(NAME ReadMeshTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadMesh
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/genusZeroSurface01.vtk 0 25
 )
diff --git a/src/IO/TIFF/WriteATIFFImage/CMakeLists.txt b/src/IO/TIFF/WriteATIFFImage/CMakeLists.txt
index 5d382a229..37fb30ffc 100644
--- a/src/IO/TIFF/WriteATIFFImage/CMakeLists.txt
+++ b/src/IO/TIFF/WriteATIFFImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(WriteATIFFImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(WriteATIFFImage Code.cxx)
-target_link_libraries(WriteATIFFImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WriteATIFFImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/TIFF/
   COMPONENT Runtime
 )
@@ -20,5 +20,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WriteATIFFImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WriteATIFFImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Output.tif)
diff --git a/src/IO/TransformBase/ReadTransformFromFile/CMakeLists.txt b/src/IO/TransformBase/ReadTransformFromFile/CMakeLists.txt
index 9a7e5fefa..25a3b7727 100644
--- a/src/IO/TransformBase/ReadTransformFromFile/CMakeLists.txt
+++ b/src/IO/TransformBase/ReadTransformFromFile/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ReadTransformFromFile Code.cxx)
-target_link_libraries(ReadTransformFromFile ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ReadTransformFromFile
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/TransformBase
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ReadTransformFromFileTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ReadTransformFromFile)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/IO/TransformBase/WriteTransformToFile/CMakeLists.txt b/src/IO/TransformBase/WriteTransformToFile/CMakeLists.txt
index e1887de26..3447d82e9 100644
--- a/src/IO/TransformBase/WriteTransformToFile/CMakeLists.txt
+++ b/src/IO/TransformBase/WriteTransformToFile/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(WriteTransfromFromFile Code.cxx)
-target_link_libraries(WriteTransfromFromFile ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS WriteTransfromFromFile
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/TransformBase
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WriteTransfromFromFileTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WriteTransfromFromFile
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/IO/TransformFactory/RegisterTransformWithTransformFactory/CMakeLists.txt b/src/IO/TransformFactory/RegisterTransformWithTransformFactory/CMakeLists.txt
index 8ec89b817..1aad5cabb 100644
--- a/src/IO/TransformFactory/RegisterTransformWithTransformFactory/CMakeLists.txt
+++ b/src/IO/TransformFactory/RegisterTransformWithTransformFactory/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RegisterTransformWithTransformFactory Code.cxx)
-target_link_libraries(RegisterTransformWithTransformFactory ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RegisterTransformWithTransformFactory
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/IO/TransformFactory
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME RegisterTransformWithTransformFactoryTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegisterTransformWithTransformFactory)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt b/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt
index 41b7181aa..9c3bc3253 100644
--- a/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt
+++ b/src/Nonunit/Review/GeometricPropertiesOfRegion/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(GeometricPropertiesOfRegion Code.cxx)
-  target_link_libraries(GeometricPropertiesOfRegion ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(GeometricPropertiesOfRegion Code.cxx)
-  target_link_libraries(GeometricPropertiesOfRegion ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS GeometricPropertiesOfRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Nonunit/Review
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME GeometricPropertiesOfRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GeometricPropertiesOfRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Nonunit/Review/MultiphaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt b/src/Nonunit/Review/MultiphaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt
index d8ce453da..48da121c4 100644
--- a/src/Nonunit/Review/MultiphaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt
+++ b/src/Nonunit/Review/MultiphaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultiphaseChanAndVeseSparseFieldLevelSetSegmentation Code.cxx)
-target_link_libraries(MultiphaseChanAndVeseSparseFieldLevelSetSegmentation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultiphaseChanAndVeseSparseFieldLevelSetSegmentation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Nonunit/Review
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultiphaseChanAndVeseSparseFieldLevelSetSegmentationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultiphaseChanAndVeseSparseFieldLevelSetSegmentation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Nonunit/Review/SegmentBloodVesselsWithMultiScaleHessianBasedMeasure/CMakeLists.txt b/src/Nonunit/Review/SegmentBloodVesselsWithMultiScaleHessianBasedMeasure/CMakeLists.txt
index 46ee4288c..ad300b664 100644
--- a/src/Nonunit/Review/SegmentBloodVesselsWithMultiScaleHessianBasedMeasure/CMakeLists.txt
+++ b/src/Nonunit/Review/SegmentBloodVesselsWithMultiScaleHessianBasedMeasure/CMakeLists.txt
@@ -5,10 +5,10 @@ project(SegmentBloodVesselsWithMultiScaleHessianBasedMeasure)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(SegmentBloodVesselsWithMultiScaleHessianBasedMeasure Code.cxx)
-target_link_libraries(SegmentBloodVesselsWithMultiScaleHessianBasedMeasure ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SegmentBloodVesselsWithMultiScaleHessianBasedMeasure
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Nonunit/Review
   COMPONENT Runtime
   )
@@ -27,7 +27,7 @@ set(sigma_maximum 6.0)
 set(number_of_sigma_steps 3)
 
 add_test(NAME SegmentBloodVesselsWithMultiScaleHessianBasedMeasureTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentBloodVesselsWithMultiScaleHessianBasedMeasure
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${sigma_minimum}
diff --git a/src/Nonunit/Review/SinglephaseChanAndVeseDenseFieldLevelSetSegmentation/CMakeLists.txt b/src/Nonunit/Review/SinglephaseChanAndVeseDenseFieldLevelSetSegmentation/CMakeLists.txt
index bf72c4928..dcd954e46 100644
--- a/src/Nonunit/Review/SinglephaseChanAndVeseDenseFieldLevelSetSegmentation/CMakeLists.txt
+++ b/src/Nonunit/Review/SinglephaseChanAndVeseDenseFieldLevelSetSegmentation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SinglephaseChanAndVeseDenseFieldLevelSetSegmentation Code.cxx)
-target_link_libraries(SinglephaseChanAndVeseDenseFieldLevelSetSegmentation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SinglephaseChanAndVeseDenseFieldLevelSetSegmentation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Nonunit/Review
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SinglephaseChanAndVeseDenseFieldLevelSetSegmentationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SinglephaseChanAndVeseDenseFieldLevelSetSegmentation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Nonunit/Review/SinglephaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt b/src/Nonunit/Review/SinglephaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt
index b7c82a7ec..ca4976648 100644
--- a/src/Nonunit/Review/SinglephaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt
+++ b/src/Nonunit/Review/SinglephaseChanAndVeseSparseFieldLevelSetSegmentation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SinglephaseChanAndVeseSparseFieldLevelSetSegmentation Code.cxx)
-target_link_libraries(SinglephaseChanAndVeseSparseFieldLevelSetSegmentation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SinglephaseChanAndVeseSparseFieldLevelSetSegmentation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Nonunit/Review
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SinglephaseChanAndVeseSparseFieldLevelSetSegmentationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SinglephaseChanAndVeseSparseFieldLevelSetSegmentation)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Numerics/Optimizers/AmoebaOptimizer/CMakeLists.txt b/src/Numerics/Optimizers/AmoebaOptimizer/CMakeLists.txt
index 8e589c12c..a598adab3 100644
--- a/src/Numerics/Optimizers/AmoebaOptimizer/CMakeLists.txt
+++ b/src/Numerics/Optimizers/AmoebaOptimizer/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(AmoebaOptimizer Code.cxx ExampleCostFunction.h)
-target_link_libraries(AmoebaOptimizer ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx ExampleCostFunction.h)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS AmoebaOptimizer
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Optimizers
   COMPONENT Runtime
   )
@@ -23,5 +23,5 @@ install(FILES Code.cxx CMakeLists.txt
 enable_testing()
 
 add_test(NAME AmoebaOptimizerTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AmoebaOptimizer
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
diff --git a/src/Numerics/Optimizers/ExhaustiveOptimizer/CMakeLists.txt b/src/Numerics/Optimizers/ExhaustiveOptimizer/CMakeLists.txt
index bc94a63fd..7d02f1150 100644
--- a/src/Numerics/Optimizers/ExhaustiveOptimizer/CMakeLists.txt
+++ b/src/Numerics/Optimizers/ExhaustiveOptimizer/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ExhaustiveOptimizer Code.cxx)
-target_link_libraries(ExhaustiveOptimizer ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ExhaustiveOptimizer
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Optimizers
   COMPONENT Runtime
   )
@@ -26,7 +26,7 @@ set(fixed_image ${CMAKE_CURRENT_BINARY_DIR}/orange.jpg)
 set(moving_image ${CMAKE_CURRENT_BINARY_DIR}/apple.jpg)
 
 add_test(NAME ExhaustiveOptimizerTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExhaustiveOptimizer
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
 	${fixed_image}
 	${moving_image})
 	
diff --git a/src/Numerics/Optimizers/LevenbergMarquardtOptimization/CMakeLists.txt b/src/Numerics/Optimizers/LevenbergMarquardtOptimization/CMakeLists.txt
index 3b2287b10..a59725f42 100644
--- a/src/Numerics/Optimizers/LevenbergMarquardtOptimization/CMakeLists.txt
+++ b/src/Numerics/Optimizers/LevenbergMarquardtOptimization/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(LevenbergMarquardtOptimization Code.cxx)
-target_link_libraries(LevenbergMarquardtOptimization ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS LevenbergMarquardtOptimization
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Optimizers
   COMPONENT Runtime
   )
@@ -26,7 +26,7 @@ set(output_image Output.png)
 set(test_options)
 
 add_test(NAME LevenbergMarquardtOptimizationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LevenbergMarquardtOptimization
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     ${output_image}
     ${test_options}
diff --git a/src/Numerics/Statistics/2DGaussianMixtureModelExpectMax/CMakeLists.txt b/src/Numerics/Statistics/2DGaussianMixtureModelExpectMax/CMakeLists.txt
index 68288c9de..8288bd4ba 100644
--- a/src/Numerics/Statistics/2DGaussianMixtureModelExpectMax/CMakeLists.txt
+++ b/src/Numerics/Statistics/2DGaussianMixtureModelExpectMax/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(2DGaussianMixtureModelExpectMax Code.cxx)
-target_link_libraries(2DGaussianMixtureModelExpectMax ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS 2DGaussianMixtureModelExpectMax
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME 2DGaussianMixtureModelExpectMaxTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/2DGaussianMixtureModelExpectMax)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Numerics/Statistics/ComputeHistogramFromGrayscaleImage/CMakeLists.txt b/src/Numerics/Statistics/ComputeHistogramFromGrayscaleImage/CMakeLists.txt
index b0cb27e3e..8374f88ad 100644
--- a/src/Numerics/Statistics/ComputeHistogramFromGrayscaleImage/CMakeLists.txt
+++ b/src/Numerics/Statistics/ComputeHistogramFromGrayscaleImage/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ComputeHistogramFromGrayscaleImage)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ComputeHistogramFromGrayscaleImage Code.cxx)
-target_link_libraries(ComputeHistogramFromGrayscaleImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeHistogramFromGrayscaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
 )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeHistogramFromGrayscaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeHistogramFromGrayscaleImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/sf4.png
     16
   )
diff --git a/src/Numerics/Statistics/ComputeHistogramOfMaskedRegion/CMakeLists.txt b/src/Numerics/Statistics/ComputeHistogramOfMaskedRegion/CMakeLists.txt
index 6396cffec..a043ac403 100644
--- a/src/Numerics/Statistics/ComputeHistogramOfMaskedRegion/CMakeLists.txt
+++ b/src/Numerics/Statistics/ComputeHistogramOfMaskedRegion/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeHistogramOfMaskedRegion Code.cxx)
-target_link_libraries(ComputeHistogramOfMaskedRegion ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeHistogramOfMaskedRegion
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeHistogramOfMaskedRegionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeHistogramOfMaskedRegion)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Numerics/Statistics/ComputeTextureFeatures/CMakeLists.txt b/src/Numerics/Statistics/ComputeTextureFeatures/CMakeLists.txt
index 63611b73f..f77a9e9a5 100644
--- a/src/Numerics/Statistics/ComputeTextureFeatures/CMakeLists.txt
+++ b/src/Numerics/Statistics/ComputeTextureFeatures/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeTextureFeatures Code.cxx)
-target_link_libraries(ComputeTextureFeatures ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeTextureFeatures
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeTextureFeaturesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeTextureFeatures)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Numerics/Statistics/CreateGaussianDistribution/CMakeLists.txt b/src/Numerics/Statistics/CreateGaussianDistribution/CMakeLists.txt
index fad36145f..6d4e3dc29 100644
--- a/src/Numerics/Statistics/CreateGaussianDistribution/CMakeLists.txt
+++ b/src/Numerics/Statistics/CreateGaussianDistribution/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateGaussianDistribution Code.cxx)
-target_link_libraries(CreateGaussianDistribution ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateGaussianDistribution
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateGaussianDistributionTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateGaussianDistribution)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Numerics/Statistics/CreateHistogramFromListOfMeasurements/CMakeLists.txt b/src/Numerics/Statistics/CreateHistogramFromListOfMeasurements/CMakeLists.txt
index 0c3d96f31..e2f7aa79c 100644
--- a/src/Numerics/Statistics/CreateHistogramFromListOfMeasurements/CMakeLists.txt
+++ b/src/Numerics/Statistics/CreateHistogramFromListOfMeasurements/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateHistogramFromListOfMeasurements Code.cxx)
-target_link_libraries(CreateHistogramFromListOfMeasurements ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateHistogramFromListOfMeasurements
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateHistogramFromListOfMeasurementsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateHistogramFromListOfMeasurements)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Numerics/Statistics/CreateListOfSampleMeasurements/CMakeLists.txt b/src/Numerics/Statistics/CreateListOfSampleMeasurements/CMakeLists.txt
index d420571f6..0005eaf11 100644
--- a/src/Numerics/Statistics/CreateListOfSampleMeasurements/CMakeLists.txt
+++ b/src/Numerics/Statistics/CreateListOfSampleMeasurements/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateListOfSampleMeasurements Code.cxx)
-target_link_libraries(CreateListOfSampleMeasurements ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateListOfSampleMeasurements
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateListOfSampleMeasurementsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateListOfSampleMeasurements)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Numerics/Statistics/CreateListOfSamplesFromImageWithoutDuplication/CMakeLists.txt b/src/Numerics/Statistics/CreateListOfSamplesFromImageWithoutDuplication/CMakeLists.txt
index 62d8ecfc3..92e402f0e 100644
--- a/src/Numerics/Statistics/CreateListOfSamplesFromImageWithoutDuplication/CMakeLists.txt
+++ b/src/Numerics/Statistics/CreateListOfSamplesFromImageWithoutDuplication/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateListOfSamplesFromImageWithoutDuplication Code.cxx)
-target_link_libraries(CreateListOfSamplesFromImageWithoutDuplication ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateListOfSamplesFromImageWithoutDuplication
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateListOfSamplesFromImageWithoutDuplicationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateListOfSamplesFromImageWithoutDuplication)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Numerics/Statistics/CreateListOfSamplesWithIDs/CMakeLists.txt b/src/Numerics/Statistics/CreateListOfSamplesWithIDs/CMakeLists.txt
index 031906346..88827103e 100644
--- a/src/Numerics/Statistics/CreateListOfSamplesWithIDs/CMakeLists.txt
+++ b/src/Numerics/Statistics/CreateListOfSamplesWithIDs/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CreateListOfSamplesWithIDs Code.cxx)
-target_link_libraries(CreateListOfSamplesWithIDs ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CreateListOfSamplesWithIDs
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CreateListOfSamplesWithIDsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CreateListOfSamplesWithIDs)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Numerics/Statistics/DistributeSamplingUsingGMM/CMakeLists.txt b/src/Numerics/Statistics/DistributeSamplingUsingGMM/CMakeLists.txt
index ef1d728f1..660e8d6fb 100644
--- a/src/Numerics/Statistics/DistributeSamplingUsingGMM/CMakeLists.txt
+++ b/src/Numerics/Statistics/DistributeSamplingUsingGMM/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DistributeSamplingUsingGMM Code.cxx)
-target_link_libraries(DistributeSamplingUsingGMM ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DistributeSamplingUsingGMM
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DistributeSamplingUsingGMMTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DistributeSamplingUsingGMM)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Numerics/Statistics/DistributionOfPixelsUsingGMM/CMakeLists.txt b/src/Numerics/Statistics/DistributionOfPixelsUsingGMM/CMakeLists.txt
index 9e2c9c1d2..338ab5ec3 100644
--- a/src/Numerics/Statistics/DistributionOfPixelsUsingGMM/CMakeLists.txt
+++ b/src/Numerics/Statistics/DistributionOfPixelsUsingGMM/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DistributionOfPixelsUsingGMM Code.cxx)
-target_link_libraries(DistributionOfPixelsUsingGMM ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DistributionOfPixelsUsingGMM
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DistributionOfPixelsUsingGMMTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DistributionOfPixelsUsingGMM)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Numerics/Statistics/HistogramCreationAndBinAccess/CMakeLists.txt b/src/Numerics/Statistics/HistogramCreationAndBinAccess/CMakeLists.txt
index e6097fafc..df33cd0a6 100644
--- a/src/Numerics/Statistics/HistogramCreationAndBinAccess/CMakeLists.txt
+++ b/src/Numerics/Statistics/HistogramCreationAndBinAccess/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(HistogramCreationAndBinAccess Code.cxx)
-target_link_libraries(HistogramCreationAndBinAccess ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS HistogramCreationAndBinAccess
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -25,7 +25,7 @@ enable_testing()
 set(HistogramCreationAndBinAccessTest_Regex "Frequency of the bin at index \\[0, 2\\] is 5 and the bin's instance identifier is 6")
 
 add_test(NAME HistogramCreationAndBinAccessTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/HistogramCreationAndBinAccess
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   )
 set_tests_properties(HistogramCreationAndBinAccessTest PROPERTIES
   PASS_REGULAR_EXPRESSION "${HistogramCreationAndBinAccessTest_Regex}")
diff --git a/src/Numerics/Statistics/SpatialSearch/CMakeLists.txt b/src/Numerics/Statistics/SpatialSearch/CMakeLists.txt
index ba8aa0f2d..0ea4ce30e 100644
--- a/src/Numerics/Statistics/SpatialSearch/CMakeLists.txt
+++ b/src/Numerics/Statistics/SpatialSearch/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SpatialSearch Code.cxx)
-target_link_libraries(SpatialSearch ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SpatialSearch
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Numerics/Statistics
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME SpatialSearchTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SpatialSearch)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Registration/Common/ComputeMeanSquareBetweenTwoImages/CMakeLists.txt b/src/Registration/Common/ComputeMeanSquareBetweenTwoImages/CMakeLists.txt
index 5d97b0f53..e56232ec1 100644
--- a/src/Registration/Common/ComputeMeanSquareBetweenTwoImages/CMakeLists.txt
+++ b/src/Registration/Common/ComputeMeanSquareBetweenTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ComputeMeanSquareBetweenTwoImages Code.cxx)
-target_link_libraries(ComputeMeanSquareBetweenTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ComputeMeanSquareBetweenTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME ComputeMeanSquareBetweenTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeMeanSquareBetweenTwoImages
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png
     Gourds.png)
     
diff --git a/src/Registration/Common/GlobalRegistrationOfTwoImages/CMakeLists.txt b/src/Registration/Common/GlobalRegistrationOfTwoImages/CMakeLists.txt
index e49df2ab4..769de325e 100644
--- a/src/Registration/Common/GlobalRegistrationOfTwoImages/CMakeLists.txt
+++ b/src/Registration/Common/GlobalRegistrationOfTwoImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(GlobalRegistrationOfTwoImages Code.cxx)
-target_link_libraries(GlobalRegistrationOfTwoImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS GlobalRegistrationOfTwoImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -23,7 +23,7 @@ install(FILES Code.cxx CMakeLists.txt
 enable_testing()
 
 add_test(NAME GlobalRegistrationOfTwoImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/GlobalRegistrationOfTwoImages)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if( ITK_WRAP_PYTHON )
   add_test( NAME GlobalRegistrationOfTwoImagesTestPython
diff --git a/src/Registration/Common/MatchFeaturePoints/CMakeLists.txt b/src/Registration/Common/MatchFeaturePoints/CMakeLists.txt
index 278076eba..f459d25c2 100644
--- a/src/Registration/Common/MatchFeaturePoints/CMakeLists.txt
+++ b/src/Registration/Common/MatchFeaturePoints/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MatchFeaturePoints Code.cxx)
-target_link_libraries(MatchFeaturePoints ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MatchFeaturePoints
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MatchFeaturePointsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MatchFeaturePoints)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Registration/Common/MultiresolutionPyramidFromImage/CMakeLists.txt b/src/Registration/Common/MultiresolutionPyramidFromImage/CMakeLists.txt
index 2a29d2c18..a24bdc750 100644
--- a/src/Registration/Common/MultiresolutionPyramidFromImage/CMakeLists.txt
+++ b/src/Registration/Common/MultiresolutionPyramidFromImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MultiresolutionPyramidFromImage Code.cxx)
-target_link_libraries(MultiresolutionPyramidFromImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MultiresolutionPyramidFromImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MultiresolutionPyramidFromImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MultiresolutionPyramidFromImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Registration/Common/MutualInformation/CMakeLists.txt b/src/Registration/Common/MutualInformation/CMakeLists.txt
index 75955b3a0..77314f27d 100644
--- a/src/Registration/Common/MutualInformation/CMakeLists.txt
+++ b/src/Registration/Common/MutualInformation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MutualInformation Code.cxx)
-target_link_libraries(MutualInformation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MutualInformation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MutualInformationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MutualInformation
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   fixed.png
   moving.png
   output.png)
diff --git a/src/Registration/Common/Perform2DTranslationRegistrationWithMeanSquares/CMakeLists.txt b/src/Registration/Common/Perform2DTranslationRegistrationWithMeanSquares/CMakeLists.txt
index 2d0d30fdf..b2010a626 100644
--- a/src/Registration/Common/Perform2DTranslationRegistrationWithMeanSquares/CMakeLists.txt
+++ b/src/Registration/Common/Perform2DTranslationRegistrationWithMeanSquares/CMakeLists.txt
@@ -11,10 +11,10 @@ project(Perform2DTranslationRegistrationWithMeanSquares)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(Perform2DTranslationRegistrationWithMeanSquares Code.cxx)
-target_link_libraries(Perform2DTranslationRegistrationWithMeanSquares ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS Perform2DTranslationRegistrationWithMeanSquares
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -26,7 +26,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME Perform2DTranslationRegistrationWithMeanSquaresTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Perform2DTranslationRegistrationWithMeanSquares
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   ${input_image1}
   ${input_image2}
   ${output_image1}
diff --git a/src/Registration/Common/PerformMultiModalityRegistrationWithMutualInformation/CMakeLists.txt b/src/Registration/Common/PerformMultiModalityRegistrationWithMutualInformation/CMakeLists.txt
index 55de4a5f7..c1091fc50 100644
--- a/src/Registration/Common/PerformMultiModalityRegistrationWithMutualInformation/CMakeLists.txt
+++ b/src/Registration/Common/PerformMultiModalityRegistrationWithMutualInformation/CMakeLists.txt
@@ -5,10 +5,10 @@ project(PerformMultiModalityRegistrationWithMutualInformation)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(PerformMultiModalityRegistrationWithMutualInformation Code.cxx)
-target_link_libraries(PerformMultiModalityRegistrationWithMutualInformation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PerformMultiModalityRegistrationWithMutualInformation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME PerformMultiModalityRegistrationWithMutualInformationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PerformMultiModalityRegistrationWithMutualInformation
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
   BrainT1SliceBorder20.png
   BrainProtonDensitySliceShifted13x17y.png
   Output.png
diff --git a/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/CMakeLists.txt b/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/CMakeLists.txt
index 042f42c7f..e1d829305 100644
--- a/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/CMakeLists.txt
+++ b/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RegisterImageToAnotherUsingLandmarks Code.cxx)
-target_link_libraries(RegisterImageToAnotherUsingLandmarks ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RegisterImageToAnotherUsingLandmarks
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -21,7 +21,7 @@ install(FILES Code.cxx CMakeLists.txt Code.py
 
 enable_testing()
 add_test(NAME RegisterImageToAnotherUsingLandmarksTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegisterImageToAnotherUsingLandmarks)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
 if(ITK_WRAP_PYTHON)
   add_test(NAME RegisterImageToAnotherUsingLandmarksTestPython
diff --git a/src/Registration/Common/WatchRegistration/CMakeLists.txt b/src/Registration/Common/WatchRegistration/CMakeLists.txt
index 15aec5a72..9a1562151 100644
--- a/src/Registration/Common/WatchRegistration/CMakeLists.txt
+++ b/src/Registration/Common/WatchRegistration/CMakeLists.txt
@@ -19,8 +19,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(WatchRegistration Code.cxx)
-target_link_libraries(WatchRegistration ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -29,7 +29,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     )
 endif()
 
-install(TARGETS WatchRegistration
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -42,5 +42,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME WatchRegistrationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WatchRegistration fixed.png moving.png)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME} fixed.png moving.png)
 
diff --git a/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/CMakeLists.txt b/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/CMakeLists.txt
index e72c83145..4e21d7d96 100644
--- a/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/CMakeLists.txt
+++ b/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(PerformRegistrationOnVectorImages Code.cxx)
-target_link_libraries(PerformRegistrationOnVectorImages ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS PerformRegistrationOnVectorImages
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Metricsv4
   COMPONENT Runtime
   )
@@ -30,7 +30,7 @@ set(test_options
   )
 
 add_test(NAME PerformRegistrationOnVectorImagesTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/PerformRegistrationOnVectorImages
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${fixed_image}
     ${moving_image}
     ${output_image}
diff --git a/src/Registration/Metricsv4/RegisterTwoPointSets/CMakeLists.txt b/src/Registration/Metricsv4/RegisterTwoPointSets/CMakeLists.txt
index 0dc70ebec..ec88f5b57 100644
--- a/src/Registration/Metricsv4/RegisterTwoPointSets/CMakeLists.txt
+++ b/src/Registration/Metricsv4/RegisterTwoPointSets/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(RegisterTwoPointSets Code.cxx)
-target_link_libraries(RegisterTwoPointSets ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS RegisterTwoPointSets
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Registration/Common
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx Code.py CMakeLists.txt
 
 enable_testing()
 add_test(NAME RegisterTwoPointSetsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/RegisterTwoPointSets)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
   
 if(ITK_WRAP_PYTHON)
   # TODO broken in itk v5.3rc03
diff --git a/src/Remote/WikiExamples/CustomUserMatrixToAlignImageWithDICOM/CMakeLists.txt b/src/Remote/WikiExamples/CustomUserMatrixToAlignImageWithDICOM/CMakeLists.txt
index c7ad28b7d..a8c19e5d4 100644
--- a/src/Remote/WikiExamples/CustomUserMatrixToAlignImageWithDICOM/CMakeLists.txt
+++ b/src/Remote/WikiExamples/CustomUserMatrixToAlignImageWithDICOM/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(CustomUserMatrixToAlignImageWithDICOM Code.cxx)
-target_link_libraries(CustomUserMatrixToAlignImageWithDICOM ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS CustomUserMatrixToAlignImageWithDICOM
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Remote/WikiExamples
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME CustomUserMatrixToAlignImageWithDICOMTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/CustomUserMatrixToAlignImageWithDICOM)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Remote/WikiExamples/DisplayITKImage/CMakeLists.txt b/src/Remote/WikiExamples/DisplayITKImage/CMakeLists.txt
index 6fa3db76f..d5eda7fe0 100644
--- a/src/Remote/WikiExamples/DisplayITKImage/CMakeLists.txt
+++ b/src/Remote/WikiExamples/DisplayITKImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(DisplayITKImage Code.cxx)
-target_link_libraries(DisplayITKImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS DisplayITKImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Remote/WikiExamples
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME DisplayITKImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DisplayITKImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt b/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt
index e6cc764c7..e27f404de 100644
--- a/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt
+++ b/src/Segmentation/Classifiers/ClusterPixelsInGrayscaleImage/CMakeLists.txt
@@ -20,8 +20,8 @@ if(VTK_VERSION VERSION_LESS "8.90.0")
   include(${VTK_USE_FILE})
 endif()
 
-add_executable(ClusterPixelsInGrayscaleImage Code.cxx)
-target_link_libraries(ClusterPixelsInGrayscaleImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
 if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   vtk_module_autoinit(
@@ -30,7 +30,7 @@ if(NOT VTK_VERSION VERSION_LESS "8.90.0")
   )
 endif()
 
-install(TARGETS ClusterPixelsInGrayscaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/Classifiers
   COMPONENT Runtime
   )
@@ -43,4 +43,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ClusterPixelsInGrayscaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ClusterPixelsInGrayscaleImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Segmentation/Classifiers/KMeansClusterOfPixelsInImage/CMakeLists.txt b/src/Segmentation/Classifiers/KMeansClusterOfPixelsInImage/CMakeLists.txt
index 37d0401ca..142db4af2 100644
--- a/src/Segmentation/Classifiers/KMeansClusterOfPixelsInImage/CMakeLists.txt
+++ b/src/Segmentation/Classifiers/KMeansClusterOfPixelsInImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(KMeansClusterOfPixelsInImage Code.cxx)
-target_link_libraries(KMeansClusterOfPixelsInImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS KMeansClusterOfPixelsInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/Classifiers
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME KMeansClusterOfPixelsInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/KMeansClusterOfPixelsInImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Segmentation/Classifiers/KMeansClustering/CMakeLists.txt b/src/Segmentation/Classifiers/KMeansClustering/CMakeLists.txt
index 3f677ff3b..3449b9c42 100644
--- a/src/Segmentation/Classifiers/KMeansClustering/CMakeLists.txt
+++ b/src/Segmentation/Classifiers/KMeansClustering/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(KMeansClustering Code.cxx)
-target_link_libraries(KMeansClustering ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS KMeansClustering
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/Classifiers
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME KMeansClusteringTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/KMeansClustering)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt b/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt
index 75929ae25..9dcfee950 100644
--- a/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt
+++ b/src/Segmentation/ConnectedComponents/AssignContiguousLabelsToConnectedRegions/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(AssignContiguousLabelsToConnectedRegions Code.cxx)
-  target_link_libraries(AssignContiguousLabelsToConnectedRegions ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
     )
   endif()
 else()
-  add_executable(AssignContiguousLabelsToConnectedRegions Code.cxx)
-  target_link_libraries(AssignContiguousLabelsToConnectedRegions ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS AssignContiguousLabelsToConnectedRegions
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/ConnectedComponents
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME AssignContiguousLabelsToConnectedRegionsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AssignContiguousLabelsToConnectedRegions)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt b/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt
index ea3a86db4..271546e6c 100644
--- a/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt
+++ b/src/Segmentation/ConnectedComponents/ExtraLargestConnectComponentFromBinaryImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(ExtraLargestConnectComponentFromBinaryImage Code.cxx)
-  target_link_libraries(ExtraLargestConnectComponentFromBinaryImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(ExtraLargestConnectComponentFromBinaryImage Code.cxx)
-  target_link_libraries(ExtraLargestConnectComponentFromBinaryImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS ExtraLargestConnectComponentFromBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/ConnectedComponents
   COMPONENT Runtime
   )
@@ -44,5 +44,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ExtraLargestConnectComponentFromBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ExtraLargestConnectComponentFromBinaryImage
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     Yinyang.png)
diff --git a/src/Segmentation/ConnectedComponents/LabelConnectComponentsInBinaryImage/CMakeLists.txt b/src/Segmentation/ConnectedComponents/LabelConnectComponentsInBinaryImage/CMakeLists.txt
index e8314a121..adb3007ac 100644
--- a/src/Segmentation/ConnectedComponents/LabelConnectComponentsInBinaryImage/CMakeLists.txt
+++ b/src/Segmentation/ConnectedComponents/LabelConnectComponentsInBinaryImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(LabelConnectComponentsInBinaryImage Code.cxx)
-target_link_libraries(LabelConnectComponentsInBinaryImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS LabelConnectComponentsInBinaryImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/ConnectedComponents
   COMPONENT Runtime
   )
@@ -22,4 +22,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME LabelConnectComponentsInBinaryImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LabelConnectComponentsInBinaryImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt b/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt
index 696d3a2ea..34e3123a2 100644
--- a/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt
+++ b/src/Segmentation/ConnectedComponents/LabelConnectComponentsInGrayscaleImage/CMakeLists.txt
@@ -17,8 +17,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(LabelConnectComponentsInGrayscaleImage Code.cxx)
-  target_link_libraries(LabelConnectComponentsInGrayscaleImage ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -27,11 +27,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(LabelConnectComponentsInGrayscaleImage Code.cxx)
-  target_link_libraries(LabelConnectComponentsInGrayscaleImage ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS LabelConnectComponentsInGrayscaleImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/ConnectedComponents
   COMPONENT Runtime
   )
@@ -44,4 +44,4 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME LabelConnectComponentsInGrayscaleImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LabelConnectComponentsInGrayscaleImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
diff --git a/src/Segmentation/KLMRegionGrowing/BasicRegionGrowing/CMakeLists.txt b/src/Segmentation/KLMRegionGrowing/BasicRegionGrowing/CMakeLists.txt
index 3f4d5bea8..2e452e0ad 100644
--- a/src/Segmentation/KLMRegionGrowing/BasicRegionGrowing/CMakeLists.txt
+++ b/src/Segmentation/KLMRegionGrowing/BasicRegionGrowing/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(BasicRegionGrowing Code.cxx)
-target_link_libraries(BasicRegionGrowing ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS BasicRegionGrowing
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/KLMRegionGrowing
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME BasicRegionGrowingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/BasicRegionGrowing)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Segmentation/LabelVoting/IterativeHoleFilling/CMakeLists.txt b/src/Segmentation/LabelVoting/IterativeHoleFilling/CMakeLists.txt
index b73c1904e..b0ea22dad 100644
--- a/src/Segmentation/LabelVoting/IterativeHoleFilling/CMakeLists.txt
+++ b/src/Segmentation/LabelVoting/IterativeHoleFilling/CMakeLists.txt
@@ -5,10 +5,10 @@ project(IterativeHoleFilling)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(IterativeHoleFilling Code.cxx)
-target_link_libraries(IterativeHoleFilling ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS IterativeHoleFilling
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/LabelVoting
   COMPONENT Runtime
   )
@@ -21,7 +21,7 @@ install(FILES Code.cxx CMakeLists.txt
 enable_testing()
 
 add_test(NAME IterativeHoleFillingTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/IterativeHoleFilling
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/BinaryThresholdImageFilter.png
     Output.png
     3 1 5
diff --git a/src/Segmentation/LevelSets/SegmentWithGeodesicActiveContourLevelSet/CMakeLists.txt b/src/Segmentation/LevelSets/SegmentWithGeodesicActiveContourLevelSet/CMakeLists.txt
index 3c34dfa22..8764106cf 100644
--- a/src/Segmentation/LevelSets/SegmentWithGeodesicActiveContourLevelSet/CMakeLists.txt
+++ b/src/Segmentation/LevelSets/SegmentWithGeodesicActiveContourLevelSet/CMakeLists.txt
@@ -5,10 +5,10 @@ project(SegmentWithGeodesicActiveContourLevelSet)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(SegmentWithGeodesicActiveContourLevelSet Code.cxx)
-target_link_libraries(SegmentWithGeodesicActiveContourLevelSet ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SegmentWithGeodesicActiveContourLevelSet
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/LevelSets
   COMPONENT Runtime
   )
@@ -21,28 +21,28 @@ install(FILES Code.cxx CMakeLists.txt
 enable_testing()
 
 add_test(NAME GeodesicActiveContourLeftVentricleTest
-    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithGeodesicActiveContourLevelSet
+    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${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
+    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${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
+    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${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
+    COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/BrainProtonDensitySlice.png
     Output4.png
     40 90 5.0 .5 -0.3 2.0 10.0 800
diff --git a/src/Segmentation/RegionGrowing/ConnectedComponentsInImage/CMakeLists.txt b/src/Segmentation/RegionGrowing/ConnectedComponentsInImage/CMakeLists.txt
index 90b5df1f8..32511f96e 100644
--- a/src/Segmentation/RegionGrowing/ConnectedComponentsInImage/CMakeLists.txt
+++ b/src/Segmentation/RegionGrowing/ConnectedComponentsInImage/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(ConnectedComponentsInImage Code.cxx)
-target_link_libraries(ConnectedComponentsInImage ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConnectedComponentsInImage
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/RegionGrowing
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConnectedComponentsInImageTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConnectedComponentsInImage)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt b/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt
index 427eadf28..405931a09 100644
--- a/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt
+++ b/src/Segmentation/RegionGrowing/SegmentPixelsWithSimilarStats/CMakeLists.txt
@@ -16,8 +16,8 @@ if(ENABLE_QUICKVIEW)
     include(${VTK_USE_FILE})
   endif()
 
-  add_executable(SegmentPixelsWithSimilarStats Code.cxx)
-  target_link_libraries(SegmentPixelsWithSimilarStats ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
 
   if(NOT VTK_VERSION VERSION_LESS "8.90.0")
     vtk_module_autoinit(
@@ -26,11 +26,11 @@ if(ENABLE_QUICKVIEW)
       )
   endif()
 else()
-  add_executable(SegmentPixelsWithSimilarStats Code.cxx)
-  target_link_libraries(SegmentPixelsWithSimilarStats ${ITK_LIBRARIES})
+  add_executable(${PROJECT_NAME} Code.cxx)
+  target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 endif()
 
-install(TARGETS SegmentPixelsWithSimilarStats
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/RegionGrowing
   COMPONENT Runtime
   )
@@ -46,7 +46,7 @@ enable_testing()
 set(input_image ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png)
 
 add_test(NAME SegmentPixelsWithSimilarStatsTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentPixelsWithSimilarStats
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     100
     50
diff --git a/src/Segmentation/Voronoi/VoronoiDiagram/CMakeLists.txt b/src/Segmentation/Voronoi/VoronoiDiagram/CMakeLists.txt
index 322d88e4f..df94afe68 100644
--- a/src/Segmentation/Voronoi/VoronoiDiagram/CMakeLists.txt
+++ b/src/Segmentation/Voronoi/VoronoiDiagram/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(VoronoiDiagram Code.cxx)
-target_link_libraries(VoronoiDiagram ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS VoronoiDiagram
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/Voronoi
   COMPONENT Runtime
   )
@@ -22,5 +22,5 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME VoronoiDiagramTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/VoronoiDiagram)
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
 
diff --git a/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/CMakeLists.txt b/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/CMakeLists.txt
index 65cc24e53..0695c7207 100644
--- a/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/CMakeLists.txt
+++ b/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(MorphologicalWatershedSegmentation Code.cxx)
-target_link_libraries(MorphologicalWatershedSegmentation ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS MorphologicalWatershedSegmentation
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/Watersheds
   COMPONENT Runtime
   )
@@ -22,7 +22,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME MorphologicalWatershedSegmentationTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/MorphologicalWatershedSegmentation
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     input.png
     20
     3)
diff --git a/src/Segmentation/Watersheds/SegmentWithWatershedImageFilter/CMakeLists.txt b/src/Segmentation/Watersheds/SegmentWithWatershedImageFilter/CMakeLists.txt
index 06ed5e548..32879d2ea 100644
--- a/src/Segmentation/Watersheds/SegmentWithWatershedImageFilter/CMakeLists.txt
+++ b/src/Segmentation/Watersheds/SegmentWithWatershedImageFilter/CMakeLists.txt
@@ -6,10 +6,10 @@ find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
 
-add_executable(SegmentWithWatershedImageFilter Code.cxx)
-target_link_libraries(SegmentWithWatershedImageFilter ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS SegmentWithWatershedImageFilter
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Segmentation/Watersheds
   COMPONENT Runtime
   )
@@ -34,35 +34,35 @@ set(level04 0.75)
 set(level05 0.9)
 
 add_test(NAME SegmentWithWatershedImageFilterTest01
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithWatershedImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     SegmentWithWatershedImageFilterTest01.png
     ${threshold01}
     ${level01}
   )
 add_test(NAME SegmentWithWatershedImageFilterTest02
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithWatershedImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     SegmentWithWatershedImageFilterTest02.png
     ${threshold02}
     ${level02}
   )
 add_test(NAME SegmentWithWatershedImageFilterTest03
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithWatershedImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     SegmentWithWatershedImageFilterTest03.png
     ${threshold03}
     ${level03}
   )
 add_test(NAME SegmentWithWatershedImageFilterTest04
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithWatershedImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     SegmentWithWatershedImageFilterTest04.png
     ${threshold04}
     ${level04}
   )
 add_test(NAME SegmentWithWatershedImageFilterTest05
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/SegmentWithWatershedImageFilter
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${input_image}
     SegmentWithWatershedImageFilterTest05.png
     ${threshold05}
diff --git a/src/Video/BridgeOpenCV/ConvertAnITKGrayScaleImageToCVMat/CMakeLists.txt b/src/Video/BridgeOpenCV/ConvertAnITKGrayScaleImageToCVMat/CMakeLists.txt
index 649081db0..23e42261b 100644
--- a/src/Video/BridgeOpenCV/ConvertAnITKGrayScaleImageToCVMat/CMakeLists.txt
+++ b/src/Video/BridgeOpenCV/ConvertAnITKGrayScaleImageToCVMat/CMakeLists.txt
@@ -5,10 +5,10 @@ project(ConvertAnITKGrayScaleImageToCVMat)
 find_package(ITK REQUIRED)
 include(${ITK_USE_FILE})
 
-add_executable(ConvertAnITKGrayScaleImageToCVMat Code.cxx)
-target_link_libraries(ConvertAnITKGrayScaleImageToCVMat ${ITK_LIBRARIES})
+add_executable(${PROJECT_NAME} Code.cxx)
+target_link_libraries(${PROJECT_NAME} ${ITK_LIBRARIES})
 
-install(TARGETS ConvertAnITKGrayScaleImageToCVMat
+install(TARGETS ${PROJECT_NAME}
   DESTINATION bin/ITKSphinxExamples/Video/BridgeOpenCV
   COMPONENT Runtime
   )
@@ -20,7 +20,7 @@ install(FILES Code.cxx CMakeLists.txt
 
 enable_testing()
 add_test(NAME ConvertAnITKGrayScaleImageToCVMatTest
-  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConvertAnITKGrayScaleImageToCVMat
+  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}
     ${CMAKE_CURRENT_BINARY_DIR}/Yinyang.png
     ${CMAKE_CURRENT_BINARY_DIR}/Output.png
 )