diff options
author | Jacek Antonelli | 2009-02-12 02:06:41 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-02-12 02:06:45 -0600 |
commit | 61f97b33f9850d21965d397b947a298c16ba576d (patch) | |
tree | a2edff0a7fbc83e2259eda952511b0fbdbea290b /linden/indra/cmake/OPENAL.cmake | |
parent | Second Life viewer sources 1.22.7-RC (diff) | |
download | meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.zip meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.tar.gz meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.tar.bz2 meta-impy-61f97b33f9850d21965d397b947a298c16ba576d.tar.xz |
Second Life viewer sources 1.22.8-RC
Diffstat (limited to '')
-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) | ||