aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/QuickTime.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/QuickTime.cmake')
-rw-r--r--linden/indra/cmake/QuickTime.cmake33
1 files changed, 33 insertions, 0 deletions
diff --git a/linden/indra/cmake/QuickTime.cmake b/linden/indra/cmake/QuickTime.cmake
new file mode 100644
index 0000000..b79ac11
--- /dev/null
+++ b/linden/indra/cmake/QuickTime.cmake
@@ -0,0 +1,33 @@
1# -*- cmake -*-
2
3if(INSTALL_PROPRIETARY)
4 include(Prebuilt)
5 use_prebuilt_binary(quicktime)
6endif(INSTALL_PROPRIETARY)
7
8if (DARWIN)
9 include(CMakeFindFrameworks)
10 find_library(QUICKTIME_LIBRARY QuickTime)
11elseif (WINDOWS)
12 set(QUICKTIME_SDK_DIR "C:\\Program Files\\QuickTime SDK"
13 CACHE PATH "Location of the QuickTime SDK.")
14 find_library(QUICKTIME_LIBRARY qtmlclient
15 PATHS
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/release
17 "${QUICKTIME_SDK_DIR}\\libraries"
18 )
19 include_directories(
20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/quicktime
21 "${QUICKTIME_SDK_DIR}\\CIncludes"
22 )
23endif (DARWIN)
24
25mark_as_advanced(QUICKTIME_LIBRARY)
26
27if (QUICKTIME_LIBRARY)
28 set(QUICKTIME ON CACHE BOOL "Build with QuickTime streaming media support.")
29endif (QUICKTIME_LIBRARY)
30
31if (QUICKTIME)
32 add_definitions(-DLL_QUICKTIME_ENABLED=1)
33endif (QUICKTIME)