PageRenderTime 89ms CodeModel.GetById 21ms RepoModel.GetById 6ms app.codeStats 0ms

/indra/cmake/QuickTimePlugin.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 46 lines | 35 code | 10 blank | 1 comment | 4 complexity | c4f384d77f48a02a2ccd9ef7c0110c5b MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. if(INSTALL_PROPRIETARY)
  3. include(Prebuilt)
  4. use_prebuilt_binary(quicktime)
  5. endif(INSTALL_PROPRIETARY)
  6. if (DARWIN)
  7. include(CMakeFindFrameworks)
  8. find_library(QUICKTIME_LIBRARY QuickTime)
  9. elseif (WINDOWS)
  10. set(QUICKTIME_SDK_DIR "$ENV{PROGRAMFILES}/QuickTime SDK"
  11. CACHE PATH "Location of the QuickTime SDK.")
  12. find_library(DEBUG_QUICKTIME_LIBRARY qtmlclient.lib
  13. PATHS
  14. ${ARCH_PREBUILT_DIRS_DEBUG}
  15. "${QUICKTIME_SDK_DIR}\\libraries"
  16. )
  17. find_library(RELEASE_QUICKTIME_LIBRARY qtmlclient.lib
  18. PATHS
  19. ${ARCH_PREBUILT_DIRS_RELEASE}
  20. "${QUICKTIME_SDK_DIR}\\libraries"
  21. )
  22. if (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
  23. set(QUICKTIME_LIBRARY
  24. optimized ${RELEASE_QUICKTIME_LIBRARY}
  25. debug ${DEBUG_QUICKTIME_LIBRARY}
  26. )
  27. endif (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
  28. include_directories(
  29. ${LIBS_PREBUILT_DIR}/include/quicktime
  30. "${QUICKTIME_SDK_DIR}\\CIncludes"
  31. )
  32. endif (DARWIN)
  33. mark_as_advanced(QUICKTIME_LIBRARY)
  34. if (QUICKTIME_LIBRARY)
  35. set(QUICKTIME ON CACHE BOOL "Build with QuickTime streaming media support.")
  36. endif (QUICKTIME_LIBRARY)