2020-07-28 17:40:41 -04:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
|
|
add_definitions(-DUSE_SCHANNEL -DUSE_WINDOWS_SSPI)
|
|
|
|
else()
|
|
|
|
add_definitions(-DHAVE_CONFIG_H)
|
2017-01-24 04:02:39 +01:00
|
|
|
endif()
|
2016-06-17 02:28:34 +02:00
|
|
|
|
|
|
|
include_directories(.)
|
|
|
|
|
|
|
|
file(GLOB SRCS *.c vauth/*.c vtls/*.c)
|
|
|
|
add_library(
|
|
|
|
curl
|
|
|
|
STATIC
|
|
|
|
${SRCS}
|
|
|
|
)
|
2022-05-21 15:09:05 +02:00
|
|
|
dolphin_disable_warnings_msvc(curl)
|
2016-06-17 02:28:34 +02:00
|
|
|
|
2022-07-23 22:10:10 -07:00
|
|
|
target_link_libraries(curl ${MBEDTLS_LIBRARIES} zlibstatic)
|
2017-01-24 04:02:39 +01:00
|
|
|
target_compile_definitions(curl PUBLIC CURL_STATICLIB PRIVATE CURL_DISABLE_LDAP)
|