A ready-to-use C++20 project template (CMake, Clang, ccache, generated exception headers).
| Name + Link | Status | Last Update |
|---|---|---|
| my_lib_cpp |
Run the setup script directly, without cloning the repository manually. It downloads the latest version of the template from main, renames every temporary occurrence to your chosen project name/core name, and commits/pushes the result to the current repository.
Important
This must be run from inside an existing Git repository with a configured remote — the script finishes with git add . && git commit && git push in the current directory.
Remove -push to disable the automatic commit of the setup
wget -qO- https://raw.githubusercontent.com/TsukiNi22/cpp_project_template/main/setup.sh | bash -s -- <project_name> <core_name> -pushor with curl:
curl -fsSL https://raw.githubusercontent.com/TsukiNi22/cpp_project_template/main/setup.sh | bash -s -- <project_name> <core_name> -push- Clones the latest version of the template (
mainbranch) into a temporary directory - Copies its files into the current directory
- Renames any file or directory containing a temporary names (e.g.
src/project/main.cpp→src/my_project/main.cpp) - Replaces every temporary occurrence inside the files with the given names
- Commits and pushes the result (
git add . && git commit -m "Setup c++20 project template" && git push)
gitbash- [OPTIONAL] A Git repository with a configured remote (for the final commit/push step)