mirror of
https://github.com/chinmaygarde/new_cpp_project.git
synced 2025-12-08 01:40:54 -08:00
Chinmay's C++ Project Template
| .github | ||
| assets | ||
| src | ||
| third_party | ||
| tools/cmake | ||
| .clang-format | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| justfile | ||
| LICENSE | ||
| new_cpp_project.sublime-project | ||
| README.md | ||
| vcpkg-configuration.json | ||
| vcpkg.json | ||
A New C++ Project
This is a project template Chinmay uses for his C++ projects. Clone this repository template and replace the occurrences of new_cpp_project to get started.
Prerequisites
- CMake (3.22 or above).
- Git.
- Ninja.
- Just, a task runner.
- A C11 and C++20 compiler.
- vcpkg for package management.
- Ensure that the
VCPKG_ROOTenvironment variable is present and valid.
- Ensure that the
Building
Important
Make sure you have completed all pre-requisites.
This project uses the CMake build system but use just for tasks. Using just is optional but makes things easier.
- Fetch all submodules.
just sync - Generate the default build directory.
just setup - Build the default CMake preset.
just build