try pkg-config to find libwebp
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
This commit is contained in:
parent
72c4451ebe
commit
5bd76bb2be
15
external/libwebp/CMakeLists.txt
vendored
15
external/libwebp/CMakeLists.txt
vendored
@ -14,6 +14,21 @@ if (TOMATO_DEP_LIBWEBP_USE_SYSTEM)
|
||||
# find_package(WebP GLOBAL)
|
||||
#endif()
|
||||
|
||||
if (NOT TARGET WebP::libwebpmux)
|
||||
find_package(PkgConfig)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(libwebp_PKG IMPORTED_TARGET GLOBAL libwebp)
|
||||
pkg_check_modules(libwebpdemux_PKG IMPORTED_TARGET GLOBAL libwebpdemux)
|
||||
pkg_check_modules(libwebpmux_PKG IMPORTED_TARGET GLOBAL libwebpmux)
|
||||
|
||||
if (TARGET PkgConfig::libwebp_PKG AND TARGET PkgConfig::libwebpdemux_PKG AND TARGET PkgConfig::libwebpmux_PKG)
|
||||
add_library(WebP::webp ALIAS PkgConfig::libwebp_PKG)
|
||||
add_library(WebP::webpdemux ALIAS PkgConfig::libwebpdemux_PKG)
|
||||
add_library(WebP::libwebpmux ALIAS PkgConfig::libwebpmux_PKG)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (TARGET WebP::webp)
|
||||
message(STATUS "found WebP::webp")
|
||||
endif()
|
||||
|
@ -194,6 +194,7 @@ target_link_libraries(tomato PUBLIC
|
||||
|
||||
stb_image
|
||||
stb_image_write
|
||||
WebP::webp
|
||||
WebP::webpdemux
|
||||
WebP::libwebpmux # the f why (needed for anim encode)
|
||||
qoi
|
||||
|
Loading…
x
Reference in New Issue
Block a user