mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Remove nonsense CMake for this case.
This commit is contained in:
parent
c243d87cb4
commit
e43004c2d8
64
vendor/CPR/CMakeLists.txt
vendored
64
vendor/CPR/CMakeLists.txt
vendored
@ -195,8 +195,68 @@ if(BUILD_CPR_TESTS)
|
|||||||
endif()
|
endif()
|
||||||
]]
|
]]
|
||||||
|
|
||||||
add_subdirectory(cpr)
|
add_library(cpr
|
||||||
add_subdirectory(include)
|
# Source files
|
||||||
|
cpr/auth.cpp
|
||||||
|
cpr/bearer.cpp
|
||||||
|
cpr/cookies.cpp
|
||||||
|
cpr/cprtypes.cpp
|
||||||
|
cpr/curl_container.cpp
|
||||||
|
cpr/curlholder.cpp
|
||||||
|
cpr/error.cpp
|
||||||
|
cpr/multipart.cpp
|
||||||
|
cpr/parameters.cpp
|
||||||
|
cpr/payload.cpp
|
||||||
|
cpr/proxies.cpp
|
||||||
|
cpr/session.cpp
|
||||||
|
cpr/timeout.cpp
|
||||||
|
cpr/unix_socket.cpp
|
||||||
|
cpr/util.cpp
|
||||||
|
cpr/response.cpp
|
||||||
|
# Header files
|
||||||
|
include/cpr/api.h
|
||||||
|
include/cpr/auth.h
|
||||||
|
include/cpr/bearer.h
|
||||||
|
include/cpr/body.h
|
||||||
|
include/cpr/cookies.h
|
||||||
|
include/cpr/cpr.h
|
||||||
|
include/cpr/cprtypes.h
|
||||||
|
include/cpr/curlholder.h
|
||||||
|
include/cpr/curlholder.h
|
||||||
|
include/cpr/digest.h
|
||||||
|
include/cpr/error.h
|
||||||
|
include/cpr/limit_rate.h
|
||||||
|
include/cpr/max_redirects.h
|
||||||
|
include/cpr/multipart.h
|
||||||
|
include/cpr/ntlm.h
|
||||||
|
include/cpr/parameters.h
|
||||||
|
include/cpr/payload.h
|
||||||
|
include/cpr/proxies.h
|
||||||
|
include/cpr/response.h
|
||||||
|
include/cpr/session.h
|
||||||
|
include/cpr/ssl_options.h
|
||||||
|
include/cpr/timeout.h
|
||||||
|
include/cpr/unix_socket.h
|
||||||
|
include/cpr/util.h
|
||||||
|
include/cpr/verbose.h
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(cpr::cpr ALIAS cpr)
|
||||||
|
|
||||||
|
target_include_directories(cpr PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
target_include_directories(cpr PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
|
target_link_libraries(cpr PUBLIC CURL::libcurl) # todo should be private, but first dependencies 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(DIRECTORY cpr DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||||
|
|
||||||
|
install(TARGETS cpr)
|
||||||
|
|
||||||
#[[
|
#[[
|
||||||
if(BUILD_CPR_TESTS)
|
if(BUILD_CPR_TESTS)
|
||||||
|
32
vendor/CPR/cpr/CMakeLists.txt
vendored
32
vendor/CPR/cpr/CMakeLists.txt
vendored
@ -1,32 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.7)
|
|
||||||
|
|
||||||
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)
|
|
34
vendor/CPR/include/CMakeLists.txt
vendored
34
vendor/CPR/include/CMakeLists.txt
vendored
@ -1,34 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.7)
|
|
||||||
|
|
||||||
target_include_directories(cpr PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
||||||
|
|
||||||
target_sources(cpr PRIVATE
|
|
||||||
# Header files (useful in IDEs)
|
|
||||||
cpr/api.h
|
|
||||||
cpr/auth.h
|
|
||||||
cpr/bearer.h
|
|
||||||
cpr/body.h
|
|
||||||
cpr/cookies.h
|
|
||||||
cpr/cpr.h
|
|
||||||
cpr/cprtypes.h
|
|
||||||
cpr/curlholder.h
|
|
||||||
cpr/curlholder.h
|
|
||||||
cpr/digest.h
|
|
||||||
cpr/error.h
|
|
||||||
cpr/limit_rate.h
|
|
||||||
cpr/max_redirects.h
|
|
||||||
cpr/multipart.h
|
|
||||||
cpr/ntlm.h
|
|
||||||
cpr/parameters.h
|
|
||||||
cpr/payload.h
|
|
||||||
cpr/proxies.h
|
|
||||||
cpr/response.h
|
|
||||||
cpr/session.h
|
|
||||||
cpr/ssl_options.h
|
|
||||||
cpr/timeout.h
|
|
||||||
cpr/unix_socket.h
|
|
||||||
cpr/util.h
|
|
||||||
cpr/verbose.h
|
|
||||||
)
|
|
||||||
|
|
||||||
install(DIRECTORY cpr DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
Loading…
Reference in New Issue
Block a user