FindQuickTimeSDK.cmake 1.1 KB

123456789101112131415161718192021
  1. # - Find QuickTime SDK installation
  2. # Find the QuickTime includes and library
  3. # This module defines
  4. # QuickTime_INCLUDE_DIRS, where to find QuickTime.h, etc.
  5. # QuickTime_LIBRARIES, libraries to link against to use QuickTime.
  6. # QuickTime_FOUND, If false, do not try to use QuickTime.
  7. find_path(QuickTimeSDK_INCLUDE_DIRS QuickTime.h PATHS
  8. "$ENV{PROGRAMFILES}/QuickTime SDK/CIncludes"
  9. )
  10. set(QuickTimeSDK_LIBRARY_PATH "${QuickTimeSDK_INCLUDE_DIRS}/../Libraries")
  11. find_library(QuickTimeSDK_CVClient_LIBRARY CVClient ${QuickTimeSDK_LIBRARY_PATH} NO_DEFAULT_PATH)
  12. find_library(QuickTimeSDK_QTMLClient_LIBRARY QTMLClient ${QuickTimeSDK_LIBRARY_PATH} NO_DEFAULT_PATH)
  13. set(QuickTimeSDK_LIBRARIES ${QuickTimeSDK_CVClient_LIBRARY} ${QuickTimeSDK_QTMLClient_LIBRARY})
  14. # handle the QUIETLY and REQUIRED arguments and set QuickTimeSDK_FOUND to TRUE if all listed variables are TRUE
  15. include(FindPackageHandleStandardArgs)
  16. FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTimeSDK DEFAULT_MSG QuickTimeSDK_LIBRARIES QuickTimeSDK_INCLUDE_DIRS)
  17. mark_as_advanced(QuickTimeSDK_INCLUDE_DIRS QuickTimeSDK_CVClient_LIBRARY QuickTimeSDK_QTMLClient_LIBRARY)