From 95f86f4ce18e65d45894d5a130c4bdaf8ecbaac5 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Wed, 4 Jul 2018 19:11:03 +0300 Subject: Implement CurlHttpClient. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f5ff1d2..236acbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,13 @@ find_package(Threads REQUIRED) find_package(OpenSSL REQUIRED) include_directories(${OPENSSL_INCLUDE_DIR}) +# curl +find_package(CURL) +if (CURL_FOUND) +include_directories(${CURL_INCLUDE_DIRS}) +add_definitions(-DHAVE_CURL) +endif() + # boost set(Boost_USE_MULTITHREADED ON) if (ENABLE_TESTS) @@ -44,6 +51,7 @@ set(LIB_LIST ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} ${Boost_LIBRARIES} + ${CURL_LIBRARIES} ) ### building project -- cgit v1.2.3