Useful CMake Examples
Repository Index
47,133 repositories indexed
1–24 of 36 · Most stars
🚀 Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format, reproducible dependency management and much more.
- cpp
- cmake
- template
- dependency-manager
Marrying Rust and CMake - Easy Rust and C/C++ Integration!
- cmake-cargo
- cmake
- cargo
- rust
A collection of as simple as possible, modern CMake projects
- cmake
- cmake-examples
- cmake-scripts
- cmakelists
Template for reliable, cross-platform C++ project setup using cmake.
- c-plus-plus
- cmake
- template
- c-plus-plus-11
Example library that shows best practices and proper usage of CMake by using targets
Boiler plate template for C++ projects, with CMake, Doctest, Travis CI, Appveyor, Github Actions and coverage reports.
- boilerplate
- cpp
- coveralls
- travis-ci
CMake: config mode of find_package command (examples)
- cmake
- example
An OS-agnostic C++ library template in plain CMake.
- cmake
- cmake-examples
- cmake-template
A small c++ template with modern CMake
A toolchain file and examples using cmake for iOS development (this is a fork of a similar project found on code.google.com)
A simple CMake utility for building and deploying Qt based applications on Android without QtCreator
Samples for Learning Modern CMake
A minimal CMake template for Qt 5 & 6 projects
Useful cmake macros that help with: compiler/linker flags, collecting sources, PCHs, Unity builds and other stuff.
- linker-flags
- cmake
- compiler-flags
- unity-build
this tries to be a minimal cmake example, that covers sources resources dependencies and packaging.
A simple framework for compile-time benchmarks
Contains the slides and examples for my "More Modern CMake" and "Oh No! More Modern CMake" talks from "Meeting C++" 2018 and 2019
Visual Studio and GCC precompiled header macro for CMake
CMake toolchain for all Arduino compatible boards
- arduino-cmake-toolchain
- cmake-toolchain
- arduino
- arduino-compilation
Example project which demonstrates various CMake features.
CMake modules for common applications related to computer graphics
Concise CMake 3.31+ templates for C++ executables and libraries.
- cmake
- template
CMake precompiled header support via custom PCH compiler extension
- cmake
- cmake-precompiled-headers
- clang
- gcc