Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.07 KB

File metadata and controls

55 lines (38 loc) · 1.07 KB

C++23 application template

This repository is a template for developing C++23 (or newer!) applications with modules and import std;. Configuration files are provided for the following tools:

  • CMake;
  • Clang-Format;
  • Clang-Tidy.

Required tools versions

Tool Minimum required version
CMake 4.0.0
Ninja 1.11
Clang-Format 22
Clang-Tidy ?

Compiler support

Compiler Minimum required version
GCC 15
MSVC 14.36
Clang 18.1.2

Configuring, building and running the project

  1. Open a terminal in the root directory of the project

  2. Ask CMake to generate the build system in a directory named build:

    cmake -G Ninja -B build

    Ninja is currently the only generator able to handle import std;, so do not omit "-G Ninja" in the command line.

    If the project's configuration must be updated, simply run:

    cmake build

    so that CMake only regenerates what is needed.

  3. Build the project:

    cmake --build build
  4. Run the project:

    ./build/exe