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 layoutin CMake. - Apply
GoogleTestfor test andGoogle Benchmarkfor benchmark - Use
Clang-formatandClang-tidyfor static program analysis (not ready yet) - Use
Memory Sanitizerfor 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.