Added linux compile support
This commit is contained in:
@@ -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)
|
||||||
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user