diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-02-22 03:41:05 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-09 19:57:10 +0200 |
commit | bb5c4e81c5648c509acaef9df8a6a988a6474858 (patch) | |
tree | ba74e121b974b5c491f2e115d4fb768827ba6163 /vendor/curl.cmake | |
parent | e6024a2e020ce28f87a785522b99212f91ed3ce4 (diff) | |
download | qtlocation-mapboxgl-bb5c4e81c5648c509acaef9df8a6a988a6474858.tar.gz |
[build] Make curl for Android a vendor package
This will make it easier to add it as dependencies of different targets.
Diffstat (limited to 'vendor/curl.cmake')
-rw-r--r-- | vendor/curl.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/curl.cmake b/vendor/curl.cmake new file mode 100644 index 0000000000..fde112b9ec --- /dev/null +++ b/vendor/curl.cmake @@ -0,0 +1,17 @@ +if(TARGET mbgl-vendor-curl) + return() +endif() + +add_library( + mbgl-vendor-curl INTERFACE +) + +target_link_libraries( + mbgl-vendor-curl + INTERFACE $<$<PLATFORM_ID:Android>:${CMAKE_CURRENT_LIST_DIR}/curl-android-ios/prebuilt-with-ssl/android/${ANDROID_ABI}/libcurl.a> +) + +target_include_directories( + mbgl-vendor-curl SYSTEM + INTERFACE ${CMAKE_CURRENT_LIST_DIR}/curl-android-ios/curl/include +) |