Loading repository data…
Loading repository data…
djeada / repository
A curated collection of modern C++ project templates and best practices using CMake.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A curated collection of modern C++ project templates and best practices using CMake.
This repository is your go-to resource for learning, prototyping, and kickstarting C++ projects with CMake.
It demonstrates real-world setups for:
CMake is the industry standard for cross-platform C++ builds.
It empowers you to:
git clone https://github.com/djeada/CMake-Examples.git
cd CMake-Examples
cd src/<example-dir>
mkdir build && cd build
cmake ..
cmake --build .
bash tests/check_format.sh
bash tests/test_compile.sh
src/
clang-tidy/ # Clang-Tidy integration
executables-and-libraries/ # Executable & library example
exporting-and-using-packages/
exporting-packages/
using-packages/
gtest/ # GoogleTest integration
mpi/ # MPI example
opencv/ # OpenCV example
subdirectories/ # Modular subdirectory example
tests/ # Formatting & build scripts
.github/workflows/ci.yml # Automated CI workflow
tests/check_format.sh: Enforces modern C++ style (clang-format)tests/test_compile.sh: Verifies all examples buildPull requests and issues are welcome!
Please follow formatting standards and include relevant tests.
MIT License. See LICENSE.
Ready to build something great?
Explore, learn, and ship modern C++ with CMake!