2013-01-14 22:26:11 -05:00
|
|
|
# Find GLESv2
|
|
|
|
#
|
|
|
|
# GLESv2_INCLUDE_DIR
|
|
|
|
# GLESv2_LIBRARY
|
|
|
|
# GLESv2_FOUND
|
|
|
|
|
2014-10-12 11:58:48 -04:00
|
|
|
find_path(GLESv2_INCLUDE_DIR NAMES GLES2/gl2.h PATHS /opt/vc/include)
|
2013-01-14 22:26:11 -05:00
|
|
|
|
|
|
|
set(GLESv2_NAMES ${GLESv2_NAMES} GLESv2)
|
2014-10-12 11:58:48 -04:00
|
|
|
find_library(GLESv2_LIBRARY NAMES ${GLESv2_NAMES} PATHS /opt/vc/lib)
|
2013-01-14 22:26:11 -05:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(GLESv2 DEFAULT_MSG GLESv2_LIBRARY GLESv2_INCLUDE_DIR)
|
|
|
|
|
|
|
|
mark_as_advanced(GLESv2_INCLUDE_DIR GLESv2_LIBRARY)
|
|
|
|
|