Skip to content

Integrate complete CMake build system and CI/CD workflows #2

@xcrtp

Description

@xcrtp

Overview

Based on cmake-project-template and xcmixin, integrate a complete CMake build system and CI/CD workflow.

Tasks

CMake Build System

Add missing cmake files from cmake-project-template:

  • cmake/get_version.cmake - Version extraction from CMakeLists.txt
  • cmake/install.cmake - Installation configuration
  • cmake/install_deps.cmake - Dependency installation (empty for header-only)
  • cmake/install_test_deps.cmake - Test dependency installation (Google Test)
  • cmake/xc_utils.cmake - Common CMake utilities
  • cmake/xcmathConfig.cmake.in - CMake config template

Update CMakeLists.txt:

  • Add version handling with get_version.cmake
  • Add proper export and install configuration
  • Add compiler/standard settings

CI/CD Workflows

Add GitHub Actions workflows from xcmixin:

  • .github/workflows/ci.yml - Continuous Integration

    • Build on Ubuntu, macOS, Windows
    • Test with clang and gcc
    • Run tests and examples
  • .github/workflows/release.yml - Release workflow

    • Build on all platforms
    • Create release artifacts (tar.gz/zip)
    • Auto-create GitHub release on tag push
  • .github/workflows/code-quality.yml - Code quality checks

    • Code formatting check
    • Static analysis (optional)

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions