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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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. https://github.com/bitmeal/vcpkg-cmake-integration )

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • xrepo-cmake

    CMake wrapper for Xrepo C and C++ package manager

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

  • 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 https://github.com/cpm-cmake/CPM.cmake, 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

  • Why is it that package managers are unnecessarily hard?

    13 projects | /r/cpp | 27 Sep 2022
  • CMake+Conan2 project template example repositories?

    4 projects | /r/cpp | 15 Apr 2023
  • package manager in 2022

    4 projects | /r/cpp | 19 Dec 2022
  • Use cmake to install dependency libraries?

    5 projects | /r/cpp | 19 Aug 2022
  • CMake 3.24 has support for dependency providers

    3 projects | /r/cpp | 9 Aug 2022

Did you konow that CMake is
the 64th most popular programming language
based on number of metions?