PageRenderTime 111ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/FMOD.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 39 lines | 26 code | 2 blank | 11 comment | 7 complexity | 454628810d291f85a95027f19cab7491 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. # FMOD can be set when launching the make using the argument -DFMOD:BOOL=ON
  3. # When building using proprietary binaries though (i.e. having access to LL private servers),
  4. # we always build with FMOD.
  5. # Open source devs should use the -DFMOD:BOOL=ON then if they want to build with FMOD, whether
  6. # they are using STANDALONE or not.
  7. if (INSTALL_PROPRIETARY)
  8. set(FMOD ON CACHE BOOL "Use FMOD sound library.")
  9. endif (INSTALL_PROPRIETARY)
  10. if (FMOD)
  11. if (STANDALONE)
  12. # In that case, we use the version of the library installed on the system
  13. set(FMOD_FIND_REQUIRED ON)
  14. include(FindFMOD)
  15. else (STANDALONE)
  16. if (FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
  17. # If the path have been specified in the arguments, use that
  18. set(FMOD_LIBRARIES ${FMOD_LIBRARY})
  19. MESSAGE(STATUS "Using FMOD path: ${FMOD_LIBRARIES}, ${FMOD_INCLUDE_DIR}")
  20. else (FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
  21. # If not, we're going to try to get the package listed in autobuild.xml
  22. # Note: if you're not using INSTALL_PROPRIETARY, the package URL should be local (file:/// URL)
  23. # as accessing the private LL location will fail if you don't have the credential
  24. include(Prebuilt)
  25. use_prebuilt_binary(fmod)
  26. if (WINDOWS)
  27. set(FMOD_LIBRARY fmod)
  28. elseif (DARWIN)
  29. set(FMOD_LIBRARY fmod)
  30. elseif (LINUX)
  31. set(FMOD_LIBRARY fmod-3.75)
  32. endif (WINDOWS)
  33. set(FMOD_LIBRARIES ${FMOD_LIBRARY})
  34. set(FMOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
  35. endif (FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
  36. endif (STANDALONE)
  37. endif (FMOD)