blob: d91eb2e2fd74267601f9b52507ea53737e509726 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# -*- cmake -*-
include(Prebuilt)
if( TARGET libcurl::libcurl )
return()
endif()
create_target(libcurl::libcurl)
if (USESYSTEMLIBS)
include(FindCURL)
else (USESYSTEMLIBS)
use_prebuilt_binary(curl)
if (WINDOWS)
set_target_libraries(libcurl::libcurl libcurl.lib)
else (WINDOWS)
set_target_libraries(libcurl::libcurl libcurl.a)
endif (WINDOWS)
set_target_include_dirs( libcurl::libcurl ${LIBS_PREBUILT_DIR}/include)
endif (USESYSTEMLIBS)
|