looper/web/cmake/SDL2_imageConfig.cmake

49 lines
1.3 KiB
CMake
Raw Permalink Normal View History

2024-04-24 09:59:51 -07:00
# sdl2 cmake project-config input for CMakeLists.txt script
include(FeatureSummary)
set_package_properties(SDL2_image PROPERTIES
URL "https://www.libsdl.org/projects/SDL_image/"
DESCRIPTION "SDL_image is an image file loading library"
)
########################################################################
set(SDL2_image_FOUND TRUE)
set(SDL2IMAGE_AVIF 1)
set(SDL2IMAGE_BMP 1)
set(SDL2IMAGE_GIF 1)
set(SDL2IMAGE_JPG 1)
set(SDL2IMAGE_JXL 1)
set(SDL2IMAGE_LBM 1)
set(SDL2IMAGE_PCX 1)
set(SDL2IMAGE_PNG 1)
set(SDL2IMAGE_PNM 1)
set(SDL2IMAGE_QOI 1)
set(SDL2IMAGE_SVG 1)
set(SDL2IMAGE_TGA 1)
set(SDL2IMAGE_TIF 1)
set(SDL2IMAGE_XCF 1)
set(SDL2IMAGE_XPM 1)
set(SDL2IMAGE_XV 1)
set(SDL2IMAGE_WEBP 1)
set(SDL2IMAGE_JPG_SAVE 1)
set(SDL2IMAGE_PNG_SAVE 1)
set(SDL2IMAGE_VENDORED FALSE)
set(SDL2IMAGE_BACKEND_IMAGEIO 0)
set(SDL2IMAGE_BACKEND_STB 0)
set(SDL2IMAGE_BACKEND_WIC 0)
add_library(SDL2_image::SDL2_image INTERFACE IMPORTED)
target_link_options(SDL2_image::SDL2_image INTERFACE "-sUSE_SDL_IMAGE=2")
target_compile_options(SDL2_image::SDL2_image INTERFACE "-sUSE_SDL_IMAGE=2")
add_library(SDL2_image::SDL2_image-static INTERFACE IMPORTED)
target_link_options(SDL2_image::SDL2_image-static INTERFACE "-sUSE_SDL_IMAGE=2")
target_compile_options(SDL2_image::SDL2_image-static INTERFACE "-sUSE_SDL_IMAGE=2")