tomato/external/sdl/CMakeLists.txt

18 lines
430 B
CMake

cmake_minimum_required(VERSION 3.16...3.24 FATAL_ERROR)
include(FetchContent)
if (NOT TARGET SDL3::SDL3)
set(SDL_SHARED OFF CACHE INTERNAL "")
set(SDL_STATIC ON CACHE INTERNAL "")
#TODO: pic ?
FetchContent_Declare(SDL3
GIT_REPOSITORY https://github.com/libsdl-org/SDL
GIT_TAG 0429f5d6a36fc35b551bcc2acd4a40c2db6dab82 # tip when looking
FIND_PACKAGE_ARGS # for the future
)
FetchContent_MakeAvailable(SDL3)
endif()