2013-09-23 14:36:51 +04:00
|
|
|
# - Find OpenSLES
|
|
|
|
# Find the OpenSLES includes and libraries
|
|
|
|
#
|
|
|
|
# OPENSLES_INCLUDE_DIR - where to find dsound.h
|
|
|
|
# OPENSLES_LIBRARIES - List of libraries when using dsound.
|
|
|
|
# OPENSLES_FOUND - True if dsound found.
|
|
|
|
|
2021-05-27 18:51:21 +03:00
|
|
|
get_property(_FIND_LIBRARY_USE_LIB64_PATHS GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
|
|
|
|
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS 1)
|
2013-09-23 14:36:51 +04:00
|
|
|
|
2021-05-27 18:51:21 +03:00
|
|
|
find_path(OPENSLES_INCLUDE_DIR SLES/OpenSLES.h)
|
|
|
|
|
|
|
|
find_library(OPENSLES_LIBRARY NAMES OpenSLES)
|
2013-09-23 14:36:51 +04:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(OPENSLES DEFAULT_MSG
|
|
|
|
OPENSLES_INCLUDE_DIR OPENSLES_LIBRARY)
|
|
|
|
|
|
|
|
if(OPENSLES_FOUND)
|
2021-05-27 18:51:21 +03:00
|
|
|
set(OPENSLES_INCLUDE_DIRS ${OPENSLES_INCLUDE_DIR})
|
2013-09-23 14:36:51 +04:00
|
|
|
set(OPENSLES_LIBRARIES ${OPENSLES_LIBRARY})
|
|
|
|
else(OPENSLES_FOUND)
|
2013-10-02 01:21:35 +04:00
|
|
|
if (OpenSLES_FIND_REQUIRED)
|
|
|
|
message(FATAL_ERROR "Could NOT find OPENSLES")
|
|
|
|
endif()
|
2013-09-23 14:36:51 +04:00
|
|
|
endif(OPENSLES_FOUND)
|
|
|
|
|
|
|
|
mark_as_advanced(OPENSLES_INCLUDE_DIR OPENSLES_LIBRARY)
|
2021-05-27 18:51:21 +03:00
|
|
|
|
|
|
|
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ${_FIND_LIBRARY_USE_LIB64_PATHS})
|