PageRenderTime 34ms CodeModel.GetById 25ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. if (STANDALONE)
  4. include(FindPkgConfig)
  5. pkg_check_modules(OGG REQUIRED ogg)
  6. pkg_check_modules(VORBIS REQUIRED vorbis)
  7. pkg_check_modules(VORBISENC REQUIRED vorbisenc)
  8. pkg_check_modules(VORBISFILE REQUIRED vorbisfile)
  9. else (STANDALONE)
  10. use_prebuilt_binary(ogg-vorbis)
  11. set(VORBIS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
  12. set(VORBISENC_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
  13. set(VORBISFILE_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
  14. if (WINDOWS)
  15. set(OGG_LIBRARIES
  16. optimized ogg_static
  17. debug ogg_static_d)
  18. set(VORBIS_LIBRARIES
  19. optimized vorbis_static
  20. debug vorbis_static_d)
  21. set(VORBISENC_LIBRARIES
  22. optimized vorbisenc_static
  23. debug vorbisenc_static_d)
  24. set(VORBISFILE_LIBRARIES
  25. optimized vorbisfile_static
  26. debug vorbisfile_static_d)
  27. else (WINDOWS)
  28. set(OGG_LIBRARIES ogg)
  29. set(VORBIS_LIBRARIES vorbis)
  30. set(VORBISENC_LIBRARIES vorbisenc)
  31. set(VORBISFILE_LIBRARIES vorbisfile)
  32. endif (WINDOWS)
  33. endif (STANDALONE)
  34. link_directories(
  35. ${VORBIS_LIBRARY_DIRS}
  36. ${VORBISENC_LIBRARY_DIRS}
  37. ${VORBISFILE_LIBRARY_DIRS}
  38. ${OGG_LIBRARY_DIRS}
  39. )