InsightSoftwareConsortium / ITKSphinxExamples

Cookbook examples for the Insight Toolkit documented with Sphinx
https://examples.itk.org
Apache License 2.0
53 stars 63 forks source link

STYLE: Use `${PROJECT_NAME}` as CMake target name of example projects #388

Closed N-Dekker closed 2 years ago

N-Dekker commented 2 years ago

Replaced add_executable\(\S+ with add_executable\(\${PROJECT_NAME}, replaced install\(TARGETS \S+ with install\(TARGETS \${PROJECT_NAME}, and target_link_libraries\(\S+ with target_link_libraries\${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 explicit.

N-Dekker commented 2 years ago

FYI: This force-push has adjusted the COMMAND of add_test commands as well.