docs: Update 3 files
This commit is contained in:
17
README.md
17
README.md
@ -48,6 +48,23 @@ Two HTTP client approaches are available:
|
||||
}
|
||||
```
|
||||
|
||||
To use CPR in your CMakeLists.txt with proper static linking:
|
||||
```cmake
|
||||
find_package(nlohmann_json REQUIRED)
|
||||
|
||||
# CPR static linking setup
|
||||
add_library(cpr::cpr_static STATIC IMPORTED)
|
||||
set_target_properties(cpr::cpr_static PROPERTIES
|
||||
IMPORTED_LOCATION "/usr/local/lib/libcpr.a"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "/usr/local/include"
|
||||
INTERFACE_LINK_LIBRARIES "/usr/local/lib/libcurl.a;/usr/local/lib64/libssl.a;/usr/local/lib64/libcrypto.a;/usr/lib/libz.a;/usr/lib/libzstd.a;lzma;dl"
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||
nlohmann_json::nlohmann_json
|
||||
cpr::cpr_static)
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Building the Base Image
|
||||
|
Reference in New Issue
Block a user