cmake: Move OpenSLES detection to AudioCommon through find_package()

This commit is contained in:
Florent Castelli
2017-02-04 00:55:29 +01:00
parent 529dc6aa53
commit fb02a321b6
3 changed files with 31 additions and 11 deletions

View File

@ -6,9 +6,11 @@ set(SRCS AudioCommon.cpp
set(LIBS "")
find_package(OpenSLES)
if(OPENSLES_FOUND)
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
set(SRCS ${SRCS} OpenSLESStream.cpp)
set(LIBS ${LIBS} ${OPENSLES_LIBRARIES})
set(LIBS ${LIBS} OpenSLES::OpenSLES)
endif()
if(ALSA_FOUND)