Base OpenGL/SDL2.0 project
- SDL2
- GLM
git clone --recursive https://github.com/TomMinor/SDLGL_Base
Note: Make sure to add --recursive so all the submodules are synced too
Note: On Windows it is currently necessary to force a 64-bit build with CMAKE_GENERATOR_PLATFORM
mkdir build
cd build
cmake .. -DCMAKE_GENERATOR_PLATFORM=x64 -DSDL2_DIR="D:/dev/SDL2"
Use the toolset argument (-T) to force the 2013 compilers in a newer version of Visual Studio (such as community)
cmake .. -DCMAKE_GENERATOR_PLATFORM=x64 -T v120 -DSDL2_DIR="D:/dev/SDL2"
mkdir build
cd build
cmake ..