标签:blog io for ar 2014 log sp ad on
How to Make cURL works with cmakecmake_minimum_required(VERSION 2.8) project(curlTest) find_package(CURL REQUIRED) include_directories(${CURL_INCLUDE_DIR}) set(sources appMain.cpp) add_executable(curlTest ${sources}) target_link_libraries(curlTest ${CURL_LIBRIRIES})
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h)
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h PATHS $ENV{LIBCURL_ROOT}/include)
find_library(CURL_LIBRARY NAMES curl # Windows MSVC prebuilts: curllib libcurl_imp curllib_static # Windows older "Win32 - MSVC" prebuilts (libcurl.lib, e.g. libcurl-7.15.5-win32-msvc.zip): libcurl)
How to Make cURL works with cmake
标签:blog io for ar 2014 log sp ad on
原文地址:http://blog.csdn.net/mingpingzhang/article/details/38794269