2023-04-16 07:57:34 +02:00
|
|
|
option(SDL2_DISABLE_SDL2MAIN "" ON)
|
|
|
|
option(SDL2_DISABLE_INSTALL "" ON)
|
|
|
|
option(SDL2_DISABLE_UNINSTALL "" ON)
|
|
|
|
set(SDL_SHARED OFF)
|
|
|
|
set(SDL_SHARED_ENABLED_BY_DEFAULT OFF)
|
|
|
|
set(SDL_STATIC ON)
|
|
|
|
set(SDL_STATIC_ENABLED_BY_DEFAULT ON)
|
|
|
|
set(SDL_TEST OFF)
|
|
|
|
set(SDL_TEST_ENABLED_BY_DEFAULT OFF)
|
|
|
|
set(OPT_DEF_LIBC ON)
|
|
|
|
add_subdirectory(SDL)
|
|
|
|
if (TARGET SDL2)
|
2024-03-19 07:08:54 +01:00
|
|
|
dolphin_disable_warnings(SDL2)
|
2023-04-16 07:57:34 +02:00
|
|
|
endif()
|
|
|
|
if (TARGET SDL2-static)
|
2024-03-19 07:08:54 +01:00
|
|
|
dolphin_disable_warnings(SDL2-static)
|
2023-04-16 07:57:34 +02:00
|
|
|
endif()
|