Skip to content

cppmf/GetCPM.cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A setup-free CMake dependency manager from TheLartians


GetCPM.cmake let's you add CPM to your current project. Simply download CPM.cmake into the cmake folder.

# Using wget
mkdir cmake
wget -O cmake/GetCPM.cmake https://raw.githubusercontent.com/cppmf/GetCPM.cmake/master/GetCPM.cmake
# Using curl
mkdir cmake
curl -o cmake/GetCPM.cmake https://raw.githubusercontent.com/cppmf/GetCPM.cmake/master/GetCPM.cmake
# Using aria2
aria2c -d cmake -o GetCPM.cmake https://raw.githubusercontent.com/cppmf/GetCPM.cmake/master/GetCPM.cmake
# for powershell user
New-Item -Name "cmake" -ItemType "directory"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cppmf/GetCPM.cmake/master/GetCPM.cmake" -OutFile "cmake/GetCPM.cmake" -ErrorAction Stop -Verbose

then add it to CMakeLists.txt file

# add dependencies
include(cmake/GetCPM.cmake)

You can use a different version of CPM.cmake by defining CPM_CMAKE_VERSION variable.

For a full documentation about CPM, visit the original author repository : TheLartians/CPM.cmake