QuickTimePlugin.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  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.         
  28.   endif (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
  29.   
  30.   include_directories(
  31.     ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/quicktime
  32.     "${QUICKTIME_SDK_DIR}\CIncludes"
  33.     )
  34. endif (DARWIN)
  35. mark_as_advanced(QUICKTIME_LIBRARY)
  36. if (QUICKTIME_LIBRARY)
  37.   set(QUICKTIME ON CACHE BOOL "Build with QuickTime streaming media support.")
  38. endif (QUICKTIME_LIBRARY)