Skip to content

ENH: Modernize Qt integration in LayerDM tests#3

Merged
Thibault-Pelletier merged 1 commit intoKitwareMedical:mainfrom
RafaelPalomar:feature/modernize_qt_integration
Feb 6, 2026
Merged

ENH: Modernize Qt integration in LayerDM tests#3
Thibault-Pelletier merged 1 commit intoKitwareMedical:mainfrom
RafaelPalomar:feature/modernize_qt_integration

Conversation

@RafaelPalomar
Copy link
Contributor

  • Replace manual QT5_GENERATE_MOCS with AUTOMOC
  • Use find_package with Qt version detection (Qt5/Qt6)
  • Simplify target linking with loop over Qt components
  • Update moc include to use .moc extension convention
  • Remove explicit Qt component dependencies in favor of dynamic linking

This change makes the test configuration more maintainable and prepares the module for Qt6 compatibility.

- Replace manual QT5_GENERATE_MOCS with AUTOMOC
- Use find_package with Qt version detection (Qt5/Qt6)
- Simplify target linking with loop over Qt components
- Update moc include to use .moc extension convention
- Remove explicit Qt component dependencies in favor of dynamic linking

This change makes the test configuration more maintainable and
prepares the module for Qt6 compatibility.
@Thibault-Pelletier
Copy link
Collaborator

Thx for the PR, it looks good to me!

@Thibault-Pelletier Thibault-Pelletier merged commit 10830a7 into KitwareMedical:main Feb 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants