~alan-griffiths/miral/better-resize-in-titlebar-wmp

« back to all changes in this revision

Viewing changes to cmake/FindGLESv2.cmake

  • Committer: Alan Griffiths
  • Date: 2016-04-08 14:33:31 UTC
  • Revision ID: alan@octopull.co.uk-20160408143331-1t2nspcuf7ndmodt
Quck and dirty import of old spinner

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)