c6688e47b3
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
30 lines
955 B
CMake
30 lines
955 B
CMake
cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
|
|
|
|
include(FetchContent)
|
|
|
|
if (NOT TARGET libwebp)
|
|
set(WEBP_LINK_STATIC ON CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_ANIM_UTILS OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_CWEBP OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_DWEBP OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_GIF2WEBP OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_IMG2WEBP OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_VWEBP OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_WEBPINFO OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_LIBWEBPMUX ON CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_WEBPMUX OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_BUILD_WEBP_JS OFF CACHE BOOL "" FORCE)
|
|
set(WEBP_USE_THREAD ON CACHE BOOL "" FORCE)
|
|
|
|
FetchContent_Declare(libwebp
|
|
GIT_REPOSITORY https://github.com/webmproject/libwebp
|
|
GIT_TAG v1.4.0
|
|
FIND_PACKAGE_ARGS
|
|
)
|
|
FetchContent_MakeAvailable(libwebp)
|
|
endif()
|
|
|
|
#add_subdirectory(./libwebp EXCLUDE_FROM_ALL)
|
|
|