Skip to content

ENH: Request ITK modules as COMPONENTS in Video/Remote/Nonunit examples - #487

Closed
hjmjohnson wants to merge 3 commits into
InsightSoftwareConsortium:mainfrom
hjmjohnson:enh-components-video-remote-nonunit
Closed

hjmjohnson wants to merge 3 commits into
InsightSoftwareConsortium:mainfrom
hjmjohnson:enh-components-video-remote-nonunit

Conversation

@hjmjohnson

Copy link
Copy Markdown
Member

Peeled from #481: the Video, Remote, and Nonunit examples request the ITK modules they use as find_package COMPONENTS. Link lines keep their explicit ITK::<Name>Module targets.

What changed
Local verification

Built against ITK main (6.0.0.20260907), macOS arm64:

Directory Build Tests
Nonunit pass 4/4 passed
Video pass none defined
Remote not built WikiExamples module off

The two Remote examples request ITKVtkGlue; both link
ITK::ITKVtkGlueModule unconditionally and sit inside
if(ENABLE_QUICKVIEW).

pre-commit run --all-files passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01S5zzoU6yyUwdLEvjM2s6iS

hjmjohnson and others added 3 commits September 15, 2026 13:55
Name the ITK modules behind each example's includes and link targets as
find_package COMPONENTS, so configure fails with "No such module" when a
module is missing rather than with a missing target at generate time.

Link lines are unchanged: each example keeps its explicit
ITK::<Name>Module targets, which show a reader which module provides
which class.

Follows the COMPONENTS approach proposed in InsightSoftwareConsortium#470.

Co-Authored-By: Bradley Lowekamp <blowekamp@mail.nih.gov>
Name the ITK modules behind each example's includes and link targets as
find_package COMPONENTS, so configure fails with "No such module" when a
module is missing rather than with a missing target at generate time.

Link lines are unchanged: each example keeps its explicit
ITK::<Name>Module targets, which show a reader which module provides
which class.

Follows the COMPONENTS approach proposed in InsightSoftwareConsortium#470.

Co-Authored-By: Bradley Lowekamp <blowekamp@mail.nih.gov>
Name the ITK modules behind each example's includes and link targets as
find_package COMPONENTS, so configure fails with "No such module" when a
module is missing rather than with a missing target at generate time.

Link lines are unchanged: each example keeps its explicit
ITK::<Name>Module targets, which show a reader which module provides
which class.

Follows the COMPONENTS approach proposed in InsightSoftwareConsortium#470.

Co-Authored-By: Bradley Lowekamp <blowekamp@mail.nih.gov>
@github-actions github-actions Bot added type:Enhancement Improvement of existing methods or implementation area:Remotes Issues affecting the Remote module area:Video Issues affecting the Video module type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots area:Nonunit Issues affecting the Nonunit module labels Sep 15, 2026
@dzenanz

dzenanz commented Sep 15, 2026

Copy link
Copy Markdown
Member

What is the point of separating these out?

@hjmjohnson hjmjohnson closed this Sep 15, 2026
@hjmjohnson

Copy link
Copy Markdown
Member Author

I was trying to make more bite sized units to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Nonunit Issues affecting the Nonunit module area:Remotes Issues affecting the Remote module area:Video Issues affecting the Video module type:Enhancement Improvement of existing methods or implementation type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants