Commit f44d4dc9 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - use GLES search in cmake if on android

parent 37e1c053
...@@ -244,11 +244,19 @@ ADD_DEFINITIONS( "-DBOOST_FILESYSTEM_VERSION=3" ) ...@@ -244,11 +244,19 @@ ADD_DEFINITIONS( "-DBOOST_FILESYSTEM_VERSION=3" )
# ----------------------------------------------------------------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------------------------------------------------------------
# OpenGL, at least 1.2 # OpenGL, at least 1.2
# See http://www.opengl.org # See http://www.opengl.org
#
FIND_PACKAGE( OpenGL REQUIRED )
# include the OpenGL header paths # Find OpenGL or OpenGL ES on Android
INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_DIR} ) IF( ANDROID )
# on Android, we rely on the fact the the GLES headers reside in the correct NDK search paths
# -> so we do not add the include dir directly. We only set the variables needed to fake a found OpenGL:
SET( OPENGL_FOUND ON )
# link against GLES 2
SET( OPENGL_LIBRARIES "GLESv2" )
ELSE()
FIND_PACKAGE( OpenGL REQUIRED )
# include the OpenGL header paths
INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_DIR} )
ENDIF()
# ----------------------------------------------------------------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------------------------------------------------------------
# OpenSceneGraph, at least 2.8.0 # OpenSceneGraph, at least 2.8.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment