PageRenderTime 30ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llaudio/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 95 lines | 79 code | 15 blank | 1 comment | 3 complexity | 8908fef19f9a78cb4f85859053a49228 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. project(llaudio)
  3. include(00-Common)
  4. include(Audio)
  5. include(LLAudio)
  6. include(FMOD)
  7. include(OPENAL)
  8. include(LLCommon)
  9. include(LLMath)
  10. include(LLMessage)
  11. include(LLVFS)
  12. include_directories(
  13. ${LLAUDIO_INCLUDE_DIRS}
  14. ${LLCOMMON_INCLUDE_DIRS}
  15. ${LLMATH_INCLUDE_DIRS}
  16. ${LLMESSAGE_INCLUDE_DIRS}
  17. ${LLVFS_INCLUDE_DIRS}
  18. ${OGG_INCLUDE_DIRS}
  19. ${VORBISENC_INCLUDE_DIRS}
  20. ${VORBISFILE_INCLUDE_DIRS}
  21. ${VORBIS_INCLUDE_DIRS}
  22. ${OPENAL_LIB_INCLUDE_DIRS}
  23. ${FREEAULT_LIB_INCLUDE_DIRS}
  24. ${FMOD_INCLUDE_DIR}
  25. )
  26. set(llaudio_SOURCE_FILES
  27. llaudioengine.cpp
  28. lllistener.cpp
  29. llaudiodecodemgr.cpp
  30. llvorbisencode.cpp
  31. )
  32. set(llaudio_HEADER_FILES
  33. CMakeLists.txt
  34. llaudioengine.h
  35. lllistener.h
  36. llaudiodecodemgr.h
  37. llvorbisencode.h
  38. llwindgen.h
  39. )
  40. if (FMOD)
  41. include_directories(
  42. ${FMOD_INCLUDE_DIR}
  43. )
  44. list(APPEND llaudio_SOURCE_FILES
  45. llaudioengine_fmod.cpp
  46. lllistener_fmod.cpp
  47. llstreamingaudio_fmod.cpp
  48. )
  49. list(APPEND llaudio_HEADER_FILES
  50. llaudioengine_fmod.h
  51. lllistener_fmod.h
  52. llstreamingaudio_fmod.h
  53. )
  54. if (LINUX OR DARWIN)
  55. set_source_files_properties(llaudioengine_fmod.cpp
  56. llstreamingaudio_fmod.cpp
  57. COMPILE_FLAGS -Wno-write-strings)
  58. endif (LINUX OR DARWIN)
  59. endif (FMOD)
  60. if (OPENAL)
  61. list(APPEND llaudio_SOURCE_FILES
  62. llaudioengine_openal.cpp
  63. lllistener_openal.cpp
  64. )
  65. list(APPEND llaudio_HEADER_FILES
  66. llaudioengine_openal.h
  67. lllistener_openal.h
  68. )
  69. endif (OPENAL)
  70. set_source_files_properties(${llaudio_HEADER_FILES}
  71. PROPERTIES HEADER_FILE_ONLY TRUE)
  72. list(APPEND llaudio_SOURCE_FILES ${llaudio_HEADER_FILES})
  73. add_library (llaudio ${llaudio_SOURCE_FILES})
  74. target_link_libraries(
  75. llaudio
  76. ${VORBISENC_LIBRARIES}
  77. ${VORBISFILE_LIBRARIES}
  78. ${VORBIS_LIBRARIES}
  79. ${OGG_LIBRARIES}
  80. )