Art*_*rek 7 c++ curl cmake curlpp clion
我在Windows 10上使用CLion和cmake系统构建.我想为http请求添加这个curlpp https://github.com/jpbarrette/curlpp.我从GitHub下载lib并放入项目文件夹.接下来我将它添加到我的CMake列表中:
add_subdirectory(curlpp-master)
Run Code Online (Sandbox Code Playgroud)
不幸的是Cmake throw错误:
Error:Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Run Code Online (Sandbox Code Playgroud)
之后我决定添加原始C curl https://github.com/curl/curl,与curlpp一样.所以现在看起来像这样:
add_subdirectory(curl-7.47.1)
add_subdirectory(curlpp-master)
Run Code Online (Sandbox Code Playgroud)
但是我没有找到卷曲库我看到同样的错误.如何正确添加curlpp?