The curl documentation explains how to build curl with CMake and install to the default install location (in my system /usr/local/),
curl
CMake
/usr/local/