X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fcmake%2FFindGLESv2.cmake;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fcmake%2FFindGLESv2.cmake;h=4cf010bb623d030101cf10b32ace46b4c87bfb27;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/cmake/FindGLESv2.cmake b/src/type3_AndroidCloud/anbox-master/cmake/FindGLESv2.cmake new file mode 100644 index 0000000..4cf010b --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/cmake/FindGLESv2.cmake @@ -0,0 +1,25 @@ +# - Try to find GLESv2 +# Once done this will define +# GLESv2_FOUND - System has GLESv2 +# GLESv2_INCLUDE_DIRS - The GLESv2 include directories +# GLESv2_LIBRARIES - The libraries needed to use GLESv2 + +find_package(PkgConfig) +pkg_check_modules(PC_GLESv2 QUIET glesv2) + +find_path(GLESv2_INCLUDE_DIR GLES2/gl2.h + HINTS ${PC_GLESv2_INCLUDEDIR} ${PC_GLESv2_INCLUDE_DIRS}) + +find_library(GLESv2_LIBRARY GLESv2 + HINTS ${PC_GLESv2_LIBDIR} ${PC_GLESv2_LIBRARY_DIRS}) + +set(GLESv2_LIBRARIES ${GLESv2_LIBRARY}) +set(GLESv2_INCLUDE_DIRS ${GLESv2_INCLUDE_DIR}) + +include(FindPackageHandleStandardArgs) +# handle the QUIETLY and REQUIRED arguments and set GLESv2_FOUND to TRUE +# if all listed variables are TRUE +find_package_handle_standard_args(GLESv2 DEFAULT_MSG + GLESv2_LIBRARY GLESv2_INCLUDE_DIR) + +mark_as_advanced(GLESv2_INCLUDE_DIR GLESv2_LIBRARY)