Skip to content

lvillani/template-modern-cpp

Repository files navigation

Modern C++ Template Project

A template project using C++ 20, CMake, and modern practices.

Choices

This repository follows, for the most part, advice taken from the book Professional CMake: A Practical Guide.

The following list illustrates some additional choices and their rationale:

  • Ninja as the default build tool: Ninja is available on most platforms, is designed to be fast and, when available, is preferred by Qt Creator and recommended by VS Code CMake Tools. It is rapidly becoming the most recommended build tool.
  • Single configuration builds: almost all generators are single-config and IDEs like Qt Creator work better with them.