Questions about how cmake is used

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

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

    Simple and Fast Multimedia Library (by PupperGump)

  • cmake_minimum_required(VERSION 3.21) project(gui LANGUAGES CXX) include(FetchContent) FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/PupperGump/SFML.git GIT_TAG puppergump_master) FetchContent_MakeAvailable(SFML) add_executable(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/main.cpp ${CMAKE_SOURCE_DIR}/include/gui.hpp ${CMAKE_SOURCE_DIR}/src/gui.cpp) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include) target_link_libraries(${PROJECT_NAME} PRIVATE sfml-graphics sfml-window) if (WIN32 AND BUILD_SHARED_LIBS) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $ $ COMMAND_EXPAND_LISTS) endif() install(TARGETS ${PROJECT_NAME})

  • conan

    Conan - The open-source C and C++ package manager

  • There are "package managers" for C++ which can download / build / install the packages you want to use in your project, you only need to give a list of the package names to it. If you want something like that you should check out Conan and vcpkg.

  • 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
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