PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/OPENAL.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 36 lines | 32 code | 3 blank | 1 comment | 7 complexity | 19043995a40819bb19e85bdb2d09db2e MD5 | raw file
 1# -*- cmake -*-
 2include(Linking)
 3include(Prebuilt)
 4
 5if (LINUX)
 6  set(OPENAL ON CACHE BOOL "Enable OpenAL")
 7else (LINUX)
 8  set(OPENAL OFF CACHE BOOL "Enable OpenAL")
 9endif (LINUX)
10
11if (OPENAL)
12  set(OPENAL_LIB_INCLUDE_DIRS "${LIBS_PREBUILT_DIR}/include/AL")
13  if (STANDALONE)
14    include(FindPkgConfig)
15    include(FindOpenAL)
16    pkg_check_modules(OPENAL_LIB REQUIRED openal)
17    pkg_check_modules(FREEALUT_LIB REQUIRED freealut)
18  else (STANDALONE)
19    use_prebuilt_binary(openal_soft)
20  endif (STANDALONE)
21  if(WINDOWS)
22    set(OPENAL_LIBRARIES 
23      OpenAL32
24      alut
25    )
26  else()
27    set(OPENAL_LIBRARIES 
28      openal
29      alut
30    )
31  endif()
32endif (OPENAL)
33
34if (OPENAL)
35  message(STATUS "Building with OpenAL audio support")
36endif (OPENAL)