You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
635 B

if(DEVILUTIONX_STATIC_SDL2)
set(BUILD_SHARED_LIBS OFF)
set(SDL_SHARED OFF)
set(SDL_STATIC ON)
if(PIE)
set(SDL_STATIC_PIC ON)
endif()
else()
set(BUILD_SHARED_LIBS ON)
set(SDL_SHARED ON)
set(SDL_STATIC OFF)
endif()
include(FetchContent_MakeAvailableExcludeFromAll)
include(FetchContent)
FetchContent_Declare(SDL2
URL https://github.com/libsdl-org/SDL/archive/5056b29b0f8611b470d8b8bdb313eab628f8bd6e.tar.gz
URL_HASH MD5=3fb6d72c33434082c32d2649c35c6502
)
FetchContent_MakeAvailableExcludeFromAll(SDL2)
if(TARGET SDL2::SDL2-static)
add_library(SDL2::SDL2 ALIAS SDL2-static)
endif()