2013-09-23 14:36:51 +04:00
|
|
|
# - Find OpenSLES
|
|
|
|
# Find the OpenSLES includes and libraries
|
|
|
|
#
|
2023-10-10 20:34:38 +03:00
|
|
|
# OpenSLES_INCLUDE_DIR - where to find dsound.h
|
|
|
|
# OpenSLES_LIBRARIES - List of libraries when using dsound.
|
|
|
|
# OpenSLES_FOUND - True if dsound found.
|
2013-09-23 14:36:51 +04:00
|
|
|
|
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
|
|
|
|
2023-10-10 20:34:38 +03:00
|
|
|
find_path(OpenSLES_INCLUDE_DIR SLES/OpenSLES.h)
|
2021-05-27 18:51:21 +03:00
|
|
|
|
2023-10-10 20:34:38 +03:00
|
|
|
find_library(OpenSLES_LIBRARY NAMES OpenSLES)
|
2013-09-23 14:36:51 +04:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2023-10-10 20:34:38 +03:00
|
|
|
find_package_handle_standard_args(OpenSLES DEFAULT_MSG
|
|
|
|
OpenSLES_INCLUDE_DIR OpenSLES_LIBRARY)
|
2013-09-23 14:36:51 +04:00
|
|
|
|
2023-10-10 20:34:38 +03:00
|
|
|
if(OpenSLES_FOUND)
|
|
|
|
set(OpenSLES_INCLUDE_DIRS ${OpenSLES_INCLUDE_DIR})
|
|
|
|
set(OpenSLES_LIBRARIES ${OpenSLES_LIBRARY})
|
|
|
|
else(OpenSLES_FOUND)
|
2013-10-02 01:21:35 +04:00
|
|
|
if (OpenSLES_FIND_REQUIRED)
|
2023-10-10 20:34:38 +03:00
|
|
|
message(FATAL_ERROR "Could NOT find OpenSLES")
|
2013-10-02 01:21:35 +04:00
|
|
|
endif()
|
2023-10-10 20:34:38 +03:00
|
|
|
endif(OpenSLES_FOUND)
|
2013-09-23 14:36:51 +04:00
|
|
|
|
2023-10-10 20:34:38 +03:00
|
|
|
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})
|