Added linux compile support
This commit is contained in:
@@ -46,6 +46,6 @@ IF (WIN32)
|
||||
|
||||
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.
|
||||
|
||||
#ifdef linux
|
||||
#include <SDL2/SDL.h>
|
||||
#else
|
||||
#include <SDL.h>
|
||||
#endif
|
||||
|
||||
// stb_image is used as the image loading library.
|
||||
|
||||
@@ -64,4 +68,4 @@
|
||||
|
||||
#include <generator.hpp>
|
||||
|
||||
#include <file.hpp>
|
||||
#include <file.hpp>
|
||||
|
||||
Reference in New Issue
Block a user