Skip to content

Repository files navigation

cpp_project_template

A ready-to-use C++20 project template (CMake, Clang, ccache, generated exception headers).

Dependencies

Name + Link Status Last Update
my_lib_cpp CI/CD - Library

Quick Setup

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> -push

or with curl:

curl -fsSL https://raw.githubusercontent.com/TsukiNi22/cpp_project_template/main/setup.sh | bash -s -- <project_name> <core_name> -push

What the script does

  1. Clones the latest version of the template (main branch) into a temporary directory
  2. Copies its files into the current directory
  3. Renames any file or directory containing a temporary names (e.g. src/project/main.cppsrc/my_project/main.cpp)
  4. Replaces every temporary occurrence inside the files with the given names
  5. Commits and pushes the result (git add . && git commit -m "Setup c++20 project template" && git push)

Requirements

  • git
  • bash
  • [OPTIONAL] A Git repository with a configured remote (for the final commit/push step)

About

Template for cpp project

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages