# Disable building the stuff we don't need. set(BUILD_SHARED_LIBS OFF CACHE BOOL "") set(SDL_DISKAUDIO OFF CACHE BOOL "") set(SDL_OPENGL OFF CACHE BOOL "") set(SDL_OPENGLES OFF CACHE BOOL "") set(SDL_OSS OFF CACHE BOOL "") set(SDL_ALSA OFF CACHE BOOL "") set(SDL_JACK OFF CACHE BOOL "") set(SDL_ESD OFF CACHE BOOL "") set(SDL_PIPEWIRE OFF CACHE BOOL "") set(SDL_PULSEAUDIO OFF CACHE BOOL "") set(SDL_ARTS OFF CACHE BOOL "") set(SDL_NAS OFF CACHE BOOL "") set(SDL_SNDIO OFF CACHE BOOL "") set(SDL_FUSIONSOUND OFF CACHE BOOL "") set(SDL_LIBSAMPLERATE OFF CACHE BOOL "") set(SDL_X11 OFF CACHE BOOL "") set(SDL_WAYLAND OFF CACHE BOOL "") set(SDL_RPI OFF CACHE BOOL "") set(SDL_COCOA ON CACHE BOOL "") set(SDL_DIRECTX OFF CACHE BOOL "") set(SDL_WASAPI OFF CACHE BOOL "") set(SDL_RENDER_D3D OFF CACHE BOOL "") set(SDL_RENDER_METAL OFF CACHE BOOL "") set(SDL_VIVANTE OFF CACHE BOOL "") set(SDL_VULKAN OFF CACHE BOOL "") set(SDL_METAL OFF CACHE BOOL "") set(SDL_KMSDRM OFF CACHE BOOL "") set(SDL_OFFSCREEN OFF CACHE BOOL "") set(SDL_SHARED OFF CACHE BOOL "") set(SDL_STATIC ON CACHE BOOL "") # Subsystems set(SDL_ATOMIC ON CACHE BOOL "") set(SDL_AUDIO OFF CACHE BOOL "") set(SDL_VIDEO ON CACHE BOOL "") set(SDL_RENDER OFF CACHE BOOL "") set(SDL_EVENTS ON CACHE BOOL "") set(SDL_JOYSTICK ON CACHE BOOL "") set(SDL_HAPTIC ON CACHE BOOL "") set(SDL_HIDAPI ON CACHE BOOL "") set(SDL_POWER OFF CACHE BOOL "") set(SDL_THREADS ON CACHE BOOL "") set(SDL_TIMERS ON CACHE BOOL "") set(SDL_FILE ON CACHE BOOL "") set(SDL_LOADSO ON CACHE BOOL "") set(SDL_CPUINFO OFF CACHE BOOL "") set(SDL_FILESYSTEM OFF CACHE BOOL "") set(SDL_DLOPEN ON CACHE BOOL "") set(SDL_SENSOR OFF CACHE BOOL "") set(SDL_LOCALE OFF CACHE BOOL "") add_subdirectory(SDL)