#4848th of 55 in Backend and cloud templates
moderncppstarter
CMake template for C++ projects with tests, CI, formatting and docs
- Stars
- 5.4k
- License
- Unlicense
- Last commit
- May 2026
- Last release
- May 2026
- Language
- CMake
5,283 on 22 Apr 20265,411 on 11 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A GitHub template repository for starting a C++ library or executable with a CMake layout already in place. It separates the library, a standalone executable, a test suite and Doxygen documentation into their own CMake subprojects, with GitHub Actions workflows for macOS, Windows and Ubuntu. It has no AI functionality, so it fits the list's categories only loosely.
Who it is for: C++ developers starting a new CMake-based library or application
Strengths
- Library, standalone, test and docs live in separate CMake subprojects, with an `all` build for IDEs
- Dependencies are pinned through CPM.cmake, which can fall back to find_package, vcpkg or Conan
- Optional sanitizers, clang-tidy, iwyu, cppcheck and ccache enabled by CMake flags
- CI covers macOS, Windows and Ubuntu, with formatting checks, codecov coverage and Doxygen docs on release
Weaknesses
- No AI, model or agent functionality; it is a generic C++ project scaffold
- Renaming the `Greeter` placeholder across CMakeLists and include paths is a manual step
- Uses file GLOB for sources, so adding files requires re-running CMake
- No CPack installer setup; the README says it is out of scope
What it needs
- CMake
- Needs CMake, CPM.cmake, clang-format, cmake-format, Doxygen, codecov
- GitHub template
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backend and cloud templates
See all 55| Rank | Project | Score |
|---|---|---|
| 1 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| 2 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| 3 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 90 out of 100 |
| #4 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 89 out of 100 |
| #5 | echoMinimalist Go web framework with a radix-tree router and middleware | 88 out of 100 |