No description
Find a file
2025-10-14 10:20:00 +02:00
include replace make with cmake 2025-10-14 10:17:48 +02:00
src build with multiple source and header files 2025-10-14 10:17:48 +02:00
.gitignore add clangd support 2025-10-14 10:20:00 +02:00
CMakeLists.txt replace make with cmake 2025-10-14 10:17:48 +02:00
mise.toml add clangd support 2025-10-14 10:20:00 +02:00
README.md add clangd support 2025-10-14 10:20:00 +02:00

cpp-tmpl

An opinionated C++ template for people used to Rust and Cargo.

Build system

Development tasks are executed with mise. Examples:

  • mise run build to compile the program
  • mise run to run the program (default task)
  • mise task ls to 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/.