aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/OPENAL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/OPENAL.cmake')
-rw-r--r--linden/indra/cmake/OPENAL.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
new file mode 100644
index 0000000..eb195a0
--- /dev/null
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -0,0 +1,28 @@
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 if (STANDALONE)
13 include(FindPkgConfig)
14 include(FindOpenAL)
15 pkg_check_modules(OPENAL_LIB REQUIRED openal)
16 pkg_check_modules(FREEALUT_LIB REQUIRED freealut)
17 else (STANDALONE)
18 use_prebuilt_binary(openal)
19 endif (STANDALONE)
20 set(OPENAL_LIBRARIES
21 openal
22 alut
23 )
24endif (OPENAL)
25
26if (OPENAL)
27 message(STATUS "Building with OpenAL audio support")
28endif (OPENAL)