{"repo":"cpm-cmake/CPM.cmake","free":true,"listed":false,"github":"https://github.com/cpm-cmake/CPM.cmake","clone":"git clone https://github.com/cpm-cmake/CPM.cmake.git","description":"📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.","language":"CMake","stars":4096,"topics":["dependency-manager","package-manager","cmake","c","c-plus-plus","cpp","git","svn","dependency","dependencies"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Setup-free CMake dependency management CPM.cmake is a cross-platform CMake script that adds dependency management capabilities to CMake. It's built as a thin wrapper around CMake's FetchContent module that adds version control, caching, a simple API and more. Manage everything Any downloadable project or resource can be added as a version-controlled dependency through CPM, it is not necessary to modify or package anything. Projects using modern CMake are automatically configured and their targets can be used immediately. For everything else, the targets can be created manually after the dependency has been downloaded (see the snippets below for examples). Further reading - CPM: An Awesome Dependency Manager for C++ with CMake - CMake and the Future of C++ Package Management Full CMakeLists Example See the examples directory for complete examples with source code and check below or in the wiki for example snippets. Adding CPM To add CPM to your current project, simply add the latest release of CPM.cmake or get cpm.cmake to your project's cmake directory. The command below will perform this automatically. Or using PowerShell: You can also download CPM.cmake directly from your project's CMakeLists.txt . See the wiki for more details. Usage After CPM.cmake has been added to your project, the function CPMAddPackage can be used to fetch and configure a dependency. Afterwards, any targets defined in the dependency can be used directly. CPMAddPackage takes the following named paramet","default_branch":null,"files":null,"tree":[],"storefront":"/r/cpm-cmake","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cpm-cmake/CPM.cmake/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}