Upgraded alpine images

This commit is contained in:
emeric
2024-04-27 15:16:03 +02:00
parent 2e24cf5fab
commit 1a9b392a71
16 changed files with 82 additions and 77 deletions
+18
View File
@@ -0,0 +1,18 @@
find_path(STB_IMAGE_INCLUDE_DIR stb_image.h PATH_SUFFIXES stb)
find_path(STB_IMAGE_RESIZE2_INCLUDE_DIR stb_image_resize2.h PATH_SUFFIXES stb)
if(STB_IMAGE_RESIZE2_INCLUDE_DIR)
set(STB_IMAGE_RESIZE_VERSION 2)
else()
find_path(STB_IMAGE_RESIZE_INCLUDE_DIR stb_image_resize.h PATH_SUFFIXES stb)
if(STB_IMAGE_RESIZE_INCLUDE_DIR)
set(STB_IMAGE_RESIZE_VERSION 1)
endif()
endif()
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
StbImage
REQUIRED_VARS STB_IMAGE_INCLUDE_DIR STB_IMAGE_RESIZE_VERSION
)