CMakeLists cleanup and enable Android headless building.

This commit is contained in:
Ryan Houdek 2016-02-05 10:54:59 -06:00
parent 6305f09467
commit 2f7e3ae58e
3 changed files with 166 additions and 147 deletions

View file

@ -6,10 +6,10 @@ set(SRCS AudioCommon.cpp
set(LIBS "")
if(ANDROID)
if(OPENSLES_FOUND)
set(SRCS ${SRCS} OpenSLESStream.cpp)
set(LIBS ${LIBS} OpenSLES)
endif(ANDROID)
set(LIBS ${LIBS} ${OPENSLES_LIBRARIES})
endif(OPENSLES_FOUND)
if(ALSA_FOUND)
set(SRCS ${SRCS} AlsaSoundStream.cpp)

View file

@ -61,9 +61,6 @@ else()
endif()
list(APPEND LIBS "${CMAKE_THREAD_LIBS_INIT}" ${VTUNE_LIBRARIES})
if(NOT APPLE AND NOT ANDROID)
list(APPEND LIBS rt)
endif()
# OpenGL Interface
set(SRCS ${SRCS}