PageRenderTime 28ms CodeModel.GetById 19ms app.highlight 4ms RepoModel.GetById 1ms 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
 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 "$ENV{PROGRAMFILES}/QuickTime SDK"
13      CACHE PATH "Location of the QuickTime SDK.")
14
15  find_library(DEBUG_QUICKTIME_LIBRARY qtmlclient.lib
16               PATHS
17               ${ARCH_PREBUILT_DIRS_DEBUG}
18               "${QUICKTIME_SDK_DIR}\\libraries"
19               )
20
21  find_library(RELEASE_QUICKTIME_LIBRARY qtmlclient.lib
22               PATHS
23               ${ARCH_PREBUILT_DIRS_RELEASE}
24               "${QUICKTIME_SDK_DIR}\\libraries"
25               )
26
27  if (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
28    set(QUICKTIME_LIBRARY 
29        optimized ${RELEASE_QUICKTIME_LIBRARY}
30        debug ${DEBUG_QUICKTIME_LIBRARY}
31        )
32        
33  endif (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
34  
35  include_directories(
36    ${LIBS_PREBUILT_DIR}/include/quicktime
37    "${QUICKTIME_SDK_DIR}\\CIncludes"
38    )
39endif (DARWIN)
40
41mark_as_advanced(QUICKTIME_LIBRARY)
42
43if (QUICKTIME_LIBRARY)
44  set(QUICKTIME ON CACHE BOOL "Build with QuickTime streaming media support.")
45endif (QUICKTIME_LIBRARY)
46