mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:49:46 +02:00
fix gpu CMakeLists for Android
This commit is contained in:
parent
98833e732d
commit
d7ad20e476
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,8 @@ elseif (WIN32)
|
||||||
add_definitions(-DNSIGHT_FOUND)
|
add_definitions(-DNSIGHT_FOUND)
|
||||||
target_link_libraries(${TARGET_NAME} "${NSIGHT_LIBRARIES}")
|
target_link_libraries(${TARGET_NAME} "${NSIGHT_LIBRARIES}")
|
||||||
endif ()
|
endif ()
|
||||||
|
elseif (ANDROID)
|
||||||
|
target_link_libraries(${TARGET_NAME} "-lGLESv3" "-lEGL")
|
||||||
else ()
|
else ()
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <GL/wglew.h>
|
#include <GL/wglew.h>
|
||||||
|
|
||||||
|
#elif defined(ANDROID)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glext.h>
|
#include <GL/glext.h>
|
||||||
|
|
Loading…
Reference in a new issue