fix gpu CMakeLists for Android

This commit is contained in:
Stephen Birarda 2015-01-29 15:01:15 -08:00
parent 98833e732d
commit d7ad20e476
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,8 @@ elseif (WIN32)
add_definitions(-DNSIGHT_FOUND)
target_link_libraries(${TARGET_NAME} "${NSIGHT_LIBRARIES}")
endif ()
elseif (ANDROID)
target_link_libraries(${TARGET_NAME} "-lGLESv3" "-lEGL")
else ()
find_package(OpenGL REQUIRED)

View file

@ -23,6 +23,8 @@
#include <GL/glew.h>
#include <GL/wglew.h>
#elif defined(ANDROID)
#else
#include <GL/gl.h>
#include <GL/glext.h>