PageRenderTime 27ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/cmake/Audio.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 42 lines | 38 code | 3 blank | 1 comment | 4 complexity | 1546a9be54888839e60c8083a96a31a9 MD5 | raw file
 1# -*- cmake -*-
 2include(Prebuilt)
 3
 4if (STANDALONE)
 5  include(FindPkgConfig)
 6  pkg_check_modules(OGG REQUIRED ogg)
 7  pkg_check_modules(VORBIS REQUIRED vorbis)
 8  pkg_check_modules(VORBISENC REQUIRED vorbisenc)
 9  pkg_check_modules(VORBISFILE REQUIRED vorbisfile)
10else (STANDALONE)
11  use_prebuilt_binary(ogg-vorbis)
12  set(VORBIS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
13  set(VORBISENC_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
14  set(VORBISFILE_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
15
16  if (WINDOWS)
17    set(OGG_LIBRARIES
18        optimized ogg_static
19        debug ogg_static_d)
20    set(VORBIS_LIBRARIES
21        optimized vorbis_static
22        debug vorbis_static_d)
23    set(VORBISENC_LIBRARIES
24        optimized vorbisenc_static
25        debug vorbisenc_static_d)
26    set(VORBISFILE_LIBRARIES
27        optimized vorbisfile_static
28        debug vorbisfile_static_d)
29  else (WINDOWS)
30    set(OGG_LIBRARIES ogg)
31    set(VORBIS_LIBRARIES vorbis)
32    set(VORBISENC_LIBRARIES vorbisenc)
33    set(VORBISFILE_LIBRARIES vorbisfile)
34  endif (WINDOWS)
35endif (STANDALONE)
36
37link_directories(
38    ${VORBIS_LIBRARY_DIRS}
39    ${VORBISENC_LIBRARY_DIRS}
40    ${VORBISFILE_LIBRARY_DIRS}
41    ${OGG_LIBRARY_DIRS}
42    )