Added linux compile support

This commit is contained in:
Ben Kyd
2019-10-11 10:43:41 +01:00
parent e216ceda72
commit 79ff859b78
2 changed files with 7 additions and 3 deletions

View File

@@ -46,6 +46,6 @@ IF (WIN32)
ELSE () ELSE ()
TARGET_LINK_LIBRARIES(minceraft ${OPENGL_LIBRARIES} ${SDL2_LIBRARIES} dl) TARGET_LINK_LIBRARIES(minceraft ${OPENGL_LIBRARIES} ${SDL2_LIBRARIES} SDL2 OpenGL::GL dl)
ENDIF (WIN32) ENDIF (WIN32)

View File

@@ -18,7 +18,11 @@
// SDL2 is used as the multimedia interface. // SDL2 is used as the multimedia interface.
#ifdef linux
#include <SDL2/SDL.h>
#else
#include <SDL.h> #include <SDL.h>
#endif
// stb_image is used as the image loading library. // stb_image is used as the image loading library.