CMake and Linking External libraries is a kick in the nuts if i've ever seen it.

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

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SonarQube - Static code analysis for 29 languages.
  • Mergify - Updating dependencies is time-consuming.
  • vcpkg-cmake-integration

    Vcpkg autoinstaller for CMake: Fetch Vcpkg (with versioning), bootstrap Vcpkg, install packages from `vcpkg.json`-manifest or individually from within CMake

    Did you define sdl main function? also are you running vcpkg system-wide or do you have pinned version? ( ie. )

  • xrepo-cmake

    CMake wrapper for Xrepo C and C++ package manager

    You can also use the xmake package manager with CMake if you want.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • CPM.cmake

    📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

    Yes, i found vcpkg terrible and FetchContent usually works way better. An amazing project is, which automates FetchContent and makes dependencies mostly hassle free.

  • Vcpkg

    C++ Library Manager for Windows, Linux, and MacOS

    And then there's also Qt which has plugins. vcpkg Qt5 is nice enough to copy the plugins for you, but not with Qt6. The official answer seems to be "use windeployqt". So I do, and it copies plugins fine. But sqlite doesn't work, despite the plugin sqldrivers/qsqlite.dll being in the right location. Turns out that neither vcpkg or windeployqt copy sqlite3.dll. I switched to static libraries after that, it's a lot slower to link, clang doesn't work for some reason (but clang-cl does) but at least I don't have to worry about DLLs.

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