1. 下载curl-7.48并解压
解压到"D:\Depend_3rd_party\curl748"文件夹
2. 创建build和install文件夹
1)build文件夹创建在"D:\Depend_3rd_party\curl748"文件夹内部
2)install文件夹,创建在"D:\Depend_3rd_party\curl748"外部
3. 打开cmake-3.17
1)配置源码路径和安装路径

2)点击configure
弹出以下对话框,配置好后,点击finish

等待configure完成,得到以下对话框:

3)修改配置项
(1)修改CMAKE--》CMAKE_INSTALL_PREFIX,设置为自己创建的install文件夹。

(2)修改ZLIB依赖项的路径。
我的zlib安装在D:\Depend_3rd_party\zlib1211\install文件夹下,安装教程见:博客

4)再次configure
此时,配置界面已经不红了。

5) 点击Generare
6)点击Open Project,打开VS2017

4. VS2017中编译
1)编译ALL_BUILD.
工具栏,生成--》批生成--》选中ALL_BUILD的debug和release--》生成

2)编译INSTALL
工具栏,生成--》批生成--》选中INSTALL的debug和release--》生成。
3)编译结束
得到install文件夹下内容,如下:
