Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 852 Bytes

File metadata and controls

33 lines (26 loc) · 852 Bytes

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_ROOT environment variable is present and valid.

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