Travis CI: Add OpenAL-Configuration
This commit is contained in:
parent
c69f7953c7
commit
47539f593c
1 changed files with 29 additions and 23 deletions
|
|
@ -3,8 +3,10 @@ cmake_minimum_required(VERSION 2.8.0)
|
|||
|
||||
add_definitions("-DRAYLIB_CMAKE=1")
|
||||
|
||||
# Linking for OS X -framework options
|
||||
# Will do nothing on other OSes
|
||||
if (${USE_OPENAL_BACKEND})
|
||||
find_library(OPENAL_LIBRARY OpenAL)
|
||||
endif()
|
||||
|
||||
if(${PLATFORM} MATCHES "Android")
|
||||
find_library(OPENGL_LIBRARY OpenGL)
|
||||
set(LIBS_PRIVATE m log android EGL GLESv2 OpenSLES atomic c)
|
||||
|
|
@ -31,6 +33,8 @@ else()
|
|||
set(LIBS_PRIVATE m pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
|
||||
endif()
|
||||
|
||||
set(LIBS_PRIVATE ${LIBS_PRIVATE} ${OPENAL_LIBRARY})
|
||||
|
||||
if(${PLATFORM} MATCHES "Desktop")
|
||||
if(USE_EXTERNAL_GLFW STREQUAL "ON")
|
||||
find_package(glfw3 3.2.1 REQUIRED)
|
||||
|
|
|
|||
Loading…
Reference in a new issue