CMake+Conan2 project template example repositories?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • project_options

    A general-purpose CMake library that provides functions that improve the CMake experience following the best practices.

  • I had been using the project_options repository to bootstrap most of my CMake repositories, but it appears like this is not able to handle Conan2 (due to the usage cmake-conan, on a pre-2.0-compatible version of that repo).

  • cmake-init

    The missing CMake project initializer

  • I can confirm that cmake-init works with Conan v2.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • cmake-conan

    CMake wrapper for conan C and C++ package manager

  • Some pure conan options, there's a 2.0 super early developer preview for https://github.com/conan-io/cmake-conan/tree/develop2

  • cupcake

    CMake boilerplate for an opinionated project structure. (by thejohnfreeman)

  • I have a tool, Cupcake, that I developed and personally use to start new projects, add and remove dependencies, and build and test. It is simply a convenience layer over Conan 1.x and CMake. The project structure is very opinionated and tries to accommodate people who just want to focus on the C++ while being able to work on any platform and share with anyone. I only use Conan 1.x right now, though, because 2.0 is still in growing pains, not all recipes work, and the CLI for changing profiles was removed. Cupcake is still very early days, only recently hit MVP, but figured I'd share in case anyone watching wants to give it a spin.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts