Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
f44d4dc9
Commit
f44d4dc9
authored
May 09, 2012
by
Sebastian Eichelbaum
Browse files
[CHANGE] - use GLES search in cmake if on android
parent
37e1c053
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
tools/cmake/OpenWalnut.cmake
tools/cmake/OpenWalnut.cmake
+12
-4
No files found.
tools/cmake/OpenWalnut.cmake
View file @
f44d4dc9
...
...
@@ -244,11 +244,19 @@ ADD_DEFINITIONS( "-DBOOST_FILESYSTEM_VERSION=3" )
# -----------------------------------------------------------------------------------------------------------------------------------------------
# OpenGL, at least 1.2
# See http://www.opengl.org
#
FIND_PACKAGE
(
OpenGL REQUIRED
)
# include the OpenGL header paths
INCLUDE_DIRECTORIES
(
${
OPENGL_INCLUDE_DIR
}
)
# Find OpenGL or OpenGL ES on Android
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment