remove webp from source tree and fix some bugs

This commit is contained in:
2024-04-15 01:10:15 +02:00
parent 8c24234126
commit 14f1d1d37f
334 changed files with 14 additions and 116122 deletions

View File

@ -1,6 +1,16 @@
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
set(WEBP_LINK_STATIC ON CACHE INTERNAL "")
include(FetchContent)
add_subdirectory(./libwebp EXCLUDE_FROM_ALL)
if (NOT TARGET libwebp)
set(WEBP_LINK_STATIC ON CACHE INTERNAL "")
FetchContent_Declare(libwebp
GIT_REPOSITORY https://github.com/webmproject/libwebp
GIT_TAG v1.3.2
FIND_PACKAGE_ARGS
)
FetchContent_MakeAvailable(libwebp)
endif()
#add_subdirectory(./libwebp EXCLUDE_FROM_ALL)