~cemil-azizoglu/miral/mir-0.26.1-compat

« back to all changes in this revision

Viewing changes to miral-qt/cmake/modules/FindGLESv2.cmake

  • Committer: Larry Price
  • Date: 2016-09-13 16:19:29 UTC
  • mto: (330.4.1 miral)
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: larry.price@canonical.com-20160913161929-vs9ka1capmljq1es
Removing miral-qt from release branch, updating copyright file, and adding GPL3 license to root dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# - Try to find GLESv2
2
 
# Once done this will define
3
 
#  GLESv2_FOUND - System has GLESv2
4
 
#  GLESv2_INCLUDE_DIRS - The GLESv2 include directories
5
 
#  GLESv2_LIBRARIES - The libraries needed to use GLESv2
6
 
 
7
 
find_package(PkgConfig)
8
 
pkg_check_modules(PC_GLESv2 QUIET glesv2)
9
 
 
10
 
find_path(GLESv2_INCLUDE_DIR GLES2/gl2.h
11
 
          HINTS ${PC_GLESv2_INCLUDEDIR} ${PC_GLESv2_INCLUDE_DIRS})
12
 
 
13
 
find_library(GLESv2_LIBRARY GLESv2
14
 
             HINTS ${PC_GLESv2_LIBDIR} ${PC_GLESv2_LIBRARY_DIRS})
15
 
 
16
 
set(GLESv2_LIBRARIES ${GLESv2_LIBRARY})
17
 
set(GLESv2_INCLUDE_DIRS ${GLESv2_INCLUDE_DIR})
18
 
 
19
 
include(FindPackageHandleStandardArgs)
20
 
# handle the QUIETLY and REQUIRED arguments and set GLESv2_FOUND to TRUE
21
 
# if all listed variables are TRUE
22
 
find_package_handle_standard_args(GLESv2  DEFAULT_MSG
23
 
                                  GLESv2_LIBRARY GLESv2_INCLUDE_DIR)
24
 
 
25
 
mark_as_advanced(GLESv2_INCLUDE_DIR GLESv2_LIBRARY)