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.
21 lines
597 B
21 lines
597 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() |
|
set(SDL_TEST_ENABLED_BY_DEFAULT OFF) |
|
|
|
include(functions/FetchContent_MakeAvailableExcludeFromAll) |
|
include(FetchContent) |
|
FetchContent_Declare(SDL2 |
|
URL https://github.com/libsdl-org/SDL/archive/a1d1946dcba6509f0679f507b57e7b228d32e6f8.tar.gz |
|
URL_HASH MD5=d1bc6ea361b9d65d05fb698968466ace |
|
) |
|
FetchContent_MakeAvailableExcludeFromAll(SDL2)
|
|
|