A template for experimenting with modern C++ features and libraries. It can be used as a starting point for your own projects.
To use it, in GitHub, click on "Use this template" button.
Then, clone the new repository and open it in your favorite IDE. You can then build and run the example code provided in the src directory.
- C++23 compatible compiler.
- Make for tooling.
- CMake for building.
- VSCode with C++ extension.
- Clone the repository.
- Change project name in
CMakeLists.txtandMakefile. - Replace author's name and project description in
CMakeLists.txtfile to personalize your distribution. - Run the example with
make start. It will init and build the project, and run the example code. - Modify the example code in the
srcdirectory to experiment with different C++ features. - Create your project documentation using
make documentation. - Package your project for distribution using
make package.
- fmt: A modern formatting library for C++.
- my_ho_lib: A custom header-only library.
- my_lib: A custom static library.
It includes fmt to include the downloading system for commercial libraries. It will be downloaded automatically from GitHub and linked to your project.
You can define this properties into .vscode/c_cpp_properties.json.
{
"configurations": [
{
"name": "Mac",
"includePath": ["${workspaceFolder}/**"],
"defines": [],
"compileCommands": ["${workspaceFolder}/build/compile_commands.json"],
"compilerPath": "/opt/homebrew/opt/llvm/bin/clang++",
"cStandard": "c23",
"cppStandard": "c++26"
}
],
"version": 4
}