mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
4a6bfc086c
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
33 lines
682 B
CMake
33 lines
682 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
add_library(cpr
|
|
auth.cpp
|
|
bearer.cpp
|
|
cookies.cpp
|
|
cprtypes.cpp
|
|
curl_container.cpp
|
|
curlholder.cpp
|
|
error.cpp
|
|
multipart.cpp
|
|
parameters.cpp
|
|
payload.cpp
|
|
proxies.cpp
|
|
session.cpp
|
|
timeout.cpp
|
|
unix_socket.cpp
|
|
util.cpp
|
|
response.cpp
|
|
)
|
|
|
|
add_library(cpr::cpr ALIAS cpr)
|
|
|
|
target_link_libraries(cpr PUBLIC CURL::libcurl) # todo should be private, but first dependencys in ssl_options need to be removed
|
|
|
|
# Set version for shared libraries.
|
|
set_target_properties(cpr
|
|
PROPERTIES
|
|
VERSION ${${PROJECT_NAME}_VERSION}
|
|
SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR})
|
|
|
|
install(TARGETS cpr)
|