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.
31 lines
914 B
31 lines
914 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_ExcludeFromAll_backport) |
|
include(FetchContent) |
|
|
|
if(TARGET_PLATFORM STREQUAL "dos") |
|
set(DOS ON) |
|
FetchContent_Declare(SDL2 |
|
# branch: dos-vbe-rebase |
|
URL https://github.com/diasurgical/SDL/archive/d9cf9066d9cb796b56d1d70c9c560c055a32149b.tar.gz |
|
URL_HASH MD5=9ad9ae69ee0266c895e79cf05a1e0e49 |
|
) |
|
else() |
|
FetchContent_Declare(SDL2 |
|
URL https://github.com/libsdl-org/SDL/releases/download/release-2.32.8/SDL2-2.32.8.tar.gz |
|
URL_HASH SHA256=0ca83e9c9b31e18288c7ec811108e58bac1f1bb5ec6577ad386830eac51c787e |
|
) |
|
endif() |
|
FetchContent_MakeAvailable_ExcludeFromAll(SDL2)
|
|
|