diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2013-11-27 10:56:29 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2013-11-27 11:41:48 +0900 |
commit | 8a04e0a5cc732487fd797062968c1cb41bb33094 (patch) | |
tree | 269005e054feb4df3d9d63abbee04e2990e2d320 /cmake/modules/FindGLESv2.cmake | |
parent | 725c725e14b2da11d1e0bdfb822f73d8c2c2e9a3 (diff) | |
download | wayland-ivi-extension-8a04e0a5cc732487fd797062968c1cb41bb33094.tar.gz |
cmake: Set-up of cmake to find modules
By using cmake, find dependent modules for ivi-shell and ivi
layer management api.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Diffstat (limited to 'cmake/modules/FindGLESv2.cmake')
-rw-r--r-- | cmake/modules/FindGLESv2.cmake | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cmake/modules/FindGLESv2.cmake b/cmake/modules/FindGLESv2.cmake new file mode 100644 index 0000000..8f7e6e5 --- /dev/null +++ b/cmake/modules/FindGLESv2.cmake @@ -0,0 +1,39 @@ +############################################################################ +# +# Copyright 2010, 2011 BMW Car IT GmbH +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +############################################################################ + +FIND_PATH(GLESv2_INCLUDE_DIR GLES2/gl2.h +/usr/include +) + +FIND_LIBRARY(GLESv2_LIBRARIES +NAMES GLESv2 +PATHS +) + +SET( GLESv2_FOUND "NO" ) +IF(GLESv2_LIBRARIES) + SET( GLESv2_FOUND "YES" ) + message(STATUS "Found GLESv2 libs: ${GLESv2_LIBRARIES}") + message(STATUS "Found GLESv2 includes: ${GLESv2_INCLUDE_DIR}") +ENDIF(GLESv2_LIBRARIES) + +MARK_AS_ADVANCED( + GLESv2_INCLUDE_DIR + GLESv2_LIBRARIES +) |