SDL2 Setup
Download: SDL2_Setup.exe
Installs SDL2 on Windows (MSVC, 32/64bit), making this work out of the box:
find_package(SDL2 REQUIRED)
Setup steps
Internally, the setup does the following:
-
Downloads SDL2 development libraries (For MS Visual C++, 32/64bit) from libsdl.org
-
Extracts them to your directory of choice
-
Adds a CMake config file to them
-
Sets the
SDL2_DIR
environment variable in the registry to the correct path -
Moves the headers in
include/
toinclude/SDL2/
to fix include paths (for#include <SDL2/SDL.h>
) -
Informs IDEs about a change in the system environment, as to not require a reboot
-
Creates an uninstaller and registers it with Windows