tomato-testing/external/sdl_image/CMakeLists.txt

27 lines
1.1 KiB
CMake
Raw Normal View History

2024-04-15 15:43:45 +02:00
cmake_minimum_required(VERSION 3.16...3.24 FATAL_ERROR)
include(FetchContent)
if (NOT TARGET SDL3_image::SDL3_image)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
# TODO: make pr to make this an option
set(SDL3IMAGE_BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
set(SDL3IMAGE_BACKEND_STB OFF CACHE BOOL "" FORCE) # important for security
set(SDL3IMAGE_BACKEND_IMAGEIO OFF CACHE BOOL "" FORCE) # some funky apple cmake bug
2024-04-16 10:34:47 +02:00
#set(SDL3IMAGE_JXL ON CACHE BOOL "" FORCE) # default to off
2024-04-16 00:45:12 +02:00
set(SDL3IMAGE_QOI OFF CACHE BOOL "" FORCE) # we have our own
2024-04-16 10:34:47 +02:00
set(SDL3IMAGE_WEBP OFF CACHE BOOL "" FORCE) # we have our own
2024-04-15 15:43:45 +02:00
FetchContent_Declare(SDL3_image
GIT_REPOSITORY https://github.com/libsdl-org/SDL_image
# waiting on the imgui pr to get merged so i can update sdl <.<
2024-05-15 13:54:06 +02:00
#GIT_TAG a45d6e5b84ccc0f3faae6ba7d561709ed600eee7 # tip last check
2024-05-28 17:58:24 +02:00
#GIT_TAG a34ccf16f961e6d5a480045eb650fc3dddb4bfaa # tip 14-05-2024
2024-06-09 09:11:39 +02:00
#GIT_TAG 2fc5310a9a2700fc856663200f94edebeb5e554a # tip 28-05-2024
GIT_TAG 8eff782fa33d795c9ea1ac42dbe7e17cc9874c78 # tip 09-06-2024
2024-04-15 15:43:45 +02:00
FIND_PACKAGE_ARGS # for the future
)
FetchContent_MakeAvailable(SDL3_image)
endif()