File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -29,26 +29,10 @@ To use from CMake:
2929cmake_minimum_required(VERSION 3.7)
3030project(main)
3131
32- find_path(CPPREST_INCLUDE cpprest/http_client.h)
33- find_library(CPPREST_LIB NAMES cpprest_2_9d cpprest_2_9 cpprestd cpprest)
34- find_package(Boost REQUIRED COMPONENTS random system thread filesystem chrono atomic date_time regex)
35- find_package(OpenSSL 1.0.0 REQUIRED)
32+ find_package(cpprestsdk REQUIRED)
3633
3734add_executable(main main.cpp)
38- target_include_directories(main ${CPPREST_INCLUDE})
39- target_link_libraries(main
40- ${CPPREST_LIB}
41- Boost::boost
42- Boost::random
43- Boost::system
44- Boost::thread
45- Boost::filesystem
46- Boost::chrono
47- Boost::atomic
48- Boost::date_time
49- Boost::regex
50- OpenSSL::SSL
51- )
35+ target_link_libraries(main PRIVATE cpprestsdk::cpprest)
5236```
5337
5438## What's in the SDK:
You can’t perform that action at this time.
0 commit comments