I don't get how to structure a project using cmake?

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

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

    Useful CMake Examples

  • meson

    The Meson Build System

  • The CMakeLists.txt files can be replaced by the equivalent of whatever else system you're using. You can checkout Meson as a more modern and sane build system, CMake is mostly (personally I'd say only) used because it's (sadly) the defacto standard and can be consumed by most projects/IDEs. If your project is large enough that you want to split it into components simply have each in a directory and add_subdirectory them in your top level CMake file. For example:

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • cmake-catch2-example

    A simple hello world example CMake C++ project that uses Catch2 test framework.

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