Skip to content

CMake Utils v5#43

Merged
kammce merged 6 commits intomainfrom
improved-cmake-utils-package
Feb 9, 2026
Merged

CMake Utils v5#43
kammce merged 6 commits intomainfrom
improved-cmake-utils-package

Conversation

@kammce
Copy link
Member

@kammce kammce commented Feb 9, 2026

  • Split package into v4 and v5 versions to maintain backward compatibility while introducing a modern CMake approach
  • v5 introduces explicit find_package() integration instead of the v4 toolchain injection style
  • Added C++20 module support with new functions like libhal_add_library() that accept MODULES parameter for .cppm files
  • Modernized API design with cleaner, more intuitive function names:
    • libhal_project_init() - Required project setup
    • libhal_add_library() - Create library targets with sources/modules
    • libhal_add_tests() - Simplified test setup with TEST_NAMES or TEST_SOURCES
    • libhal_add_executable() / libhal_build_apps() - Demo/app building
    • libhal_install_library() - Library installation with namespace support
  • Updated CI/CD pipeline to build both v4 and v5 packages based on version tags
  • Comprehensive documentation overhaul with new README for v5 and preserved v4 docs in v4/README.md

@kammce kammce force-pushed the improved-cmake-utils-package branch from be766a1 to a4b5c0d Compare February 9, 2026 03:46
@kammce kammce merged commit b5e864a into main Feb 9, 2026
1 check passed
@kammce kammce changed the title Improved cmake utils package CMake Utils v5 Feb 9, 2026
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.

1 participant