generated from c/new_cpp_project
No description
|
All checks were successful
Build / Build with CMake (push) Successful in 44s
revert Update .forgejo/workflows/build.yml |
||
|---|---|---|
| .forgejo/workflows | ||
| 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 Sample Project
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