diff options
Diffstat (limited to 'linden/indra/cmake/OPENAL.cmake')
-rw-r--r-- | linden/indra/cmake/OPENAL.cmake | 28 |
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 -*- | ||
2 | include(Linking) | ||
3 | include(Prebuilt) | ||
4 | |||
5 | if (LINUX) | ||
6 | set(OPENAL ON CACHE BOOL "Enable OpenAL") | ||
7 | else (LINUX) | ||
8 | set(OPENAL OFF CACHE BOOL "Enable OpenAL") | ||
9 | endif (LINUX) | ||
10 | |||
11 | if (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 | ) | ||
24 | endif (OPENAL) | ||
25 | |||
26 | if (OPENAL) | ||
27 | message(STATUS "Building with OpenAL audio support") | ||
28 | endif (OPENAL) | ||