Execute the following lines:
cmake .
make
sudo make install
- Install Windows version of cmake
- Run
cmake-gui.exe
- Press
configure
- Generate appropriate project files (you may have to modify some cmake variables to point to SDL and SDL_image)
- Load the project files in your IDE and build the project
For Allegro support you need the following libraries installed:
- Allegro - http://alleg.sourceforge.net/
For OpenGL support you need the following libraries installed:
- OpenGL - check with your graphics card vendor
Optional OpenGL Contrib Dependencies (Set ENABLE_OPENGL_CONTRIB to ON if you need them)
- OpenGL-FreeType Library - http://oglft.sourceforge.net/
For SDL support you need the following libraries installed:
- SDL2 - http://www.libsdl.org
- SDL2_image - http://www.libsdl.org
Optional SDL Contrib Dependencies (Set ENABLE_SDL_CONTRIB to ON if you need them)
- SDL2_ttf - http://www.libsdl.org