Skip to content

ENH: Migrate to CMake 3.23+ FILE_SET for header management - #2502

Merged
blowekamp merged 1 commit into
SimpleITK:mainfrom
blowekamp:cmake_fileset
Jan 21, 2026
Merged

blowekamp merged 1 commit into
SimpleITK:mainfrom
blowekamp:cmake_fileset

Conversation

@blowekamp

Copy link
Copy Markdown
Member
  • Raise minimum CMake version to 3.23.0
  • Use target_sources() with FILE_SET HEADERS for automatic include directory management
  • Remove manual target_include_directories() and install() commands for headers
  • Consolidate CMakeLists from src/ subdirectories into module root
  • Add PRIVATE file sets for internal headers (better IDE support)
  • Simplifies header installation and build interface configuration

@blowekamp
blowekamp force-pushed the cmake_fileset branch 2 times, most recently from a394542 to 729a4cf Compare January 13, 2026 18:34
@blowekamp

Copy link
Copy Markdown
Member Author

The Explicit and the ElastixTransformixWrappers directories also needs to be updated.

@blowekamp
blowekamp force-pushed the cmake_fileset branch 2 times, most recently from 0c7a85b to 32cb344 Compare January 16, 2026 23:46
- Raise minimum CMake version to 3.23.0
- Use target_sources() with FILE_SET HEADERS for automatic include directory management
- Remove manual target_include_directories() and install() commands for headers
- Consolidate CMakeLists from src/ subdirectories into module root
- Add PRIVATE file sets for internal headers (better IDE support)
- Simplifies header installation and build interface configuration
@blowekamp
blowekamp merged commit 1f87bcb into SimpleITK:main Jan 21, 2026
9 checks passed
@blowekamp
blowekamp deleted the cmake_fileset branch September 9, 2026 12:55
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