CMaker is a CMake template for C/C++ that adopts a Cargo-like package layout.
- Designed for C and C++
- Opt for Cargo-like
package layout
in CMake. - Apply
GoogleTest
for test andGoogle Benchmark
for benchmark - Use
Clang-format
andClang-tidy
for static program analysis (not ready yet) - Use
Memory Sanitizer
for memory safety check
In my opinion, Cargo might be the best build system in the computer world. It helps us to create a library or an execuable as ease. In addition, it allows us to run some examples or tests of your choice by the cargo run command. However, Cargo is designed only for Rust programming language. If we use C/C++ more often, how can we configure CMake to function similarly to Cargo? CMaker
is the answer.
CMaker is under the CC0 1.0 Universial license, which means it's in the world-wide public domain.