2014-09-30 22:07:25 +08:00
|
|
|
#
|
|
|
|
# Try to find GLES library and include path.
|
|
|
|
# Once done this will define
|
|
|
|
#
|
|
|
|
# GLES_FOUND
|
|
|
|
# GLES_INCLUDE_PATH
|
|
|
|
# GLES_LIBRARY
|
|
|
|
#
|
|
|
|
|
|
|
|
find_path(GLES_INCLUDE_DIR GLES/gl.h)
|
|
|
|
find_library(GLES_LIBRARY NAMES GLESv1_CM)
|
2015-04-01 10:08:23 +08:00
|
|
|
|
2014-09-30 22:07:25 +08:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(GLES DEFAULT_MSG GLES_LIBRARY GLES_INCLUDE_DIR)
|
2023-08-15 15:39:53 +08:00
|
|
|
|
|
|
|
add_library(GLES::GLES IMPORTED UNKNOWN)
|
|
|
|
set_target_properties(GLES::GLES PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES ${GLES_INCLUDE_DIR}
|
|
|
|
IMPORTED_LOCATION ${GLES_LIBRARY})
|