No description
| include | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||
| mise.toml | ||
| README.md | ||
cpp-tmpl
An opinionated C++ template for people used to Rust and Cargo.
Build system
Development tasks are executed with mise. Examples:
mise run buildto compile the programmise runto run the program (default task)mise task lsto list avaiable tasks
Under the hood, mise uses cmake and ninja to compile the code.
The installation of cmake and ninja is handled by mise.
You can pin their version in mise.toml if need be.
Language support in editors
...should just work via clangd, but you have to run the build at least once.
Code organization
Source files (*.cpp) go in src/.
src/main.cpp is the program entry point.
Header files go in include/.
Tests go in tests/.