Skip to content

Commit 4375362

Browse files
committed
Update readme to include new CMake find_package() scripts
1 parent d310b6d commit 4375362

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,10 @@ To use from CMake:
2929
cmake_minimum_required(VERSION 3.7)
3030
project(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
3734
add_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:

0 commit comments

Comments
 (0)