Unreviewed, rolling out r188919.
[WebKit-https.git] / Source / cmake / FindQuickTimeSDK.cmake
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
8 find_path(QuickTimeSDK_INCLUDE_DIRS QuickTime.h PATHS
9     "$ENV{PROGRAMFILES}/QuickTime SDK/CIncludes"
10 )
11
12 set(QuickTimeSDK_LIBRARY_PATH "${QuickTimeSDK_INCLUDE_DIRS}/../Libraries")
13 find_library(QuickTimeSDK_CVClient_LIBRARY CVClient ${QuickTimeSDK_LIBRARY_PATH} NO_DEFAULT_PATH)
14 find_library(QuickTimeSDK_QTMLClient_LIBRARY QTMLClient ${QuickTimeSDK_LIBRARY_PATH} NO_DEFAULT_PATH)
15 set(QuickTimeSDK_LIBRARIES ${QuickTimeSDK_CVClient_LIBRARY} ${QuickTimeSDK_QTMLClient_LIBRARY})
16
17 # handle the QUIETLY and REQUIRED arguments and set QuickTimeSDK_FOUND to TRUE if all listed variables are TRUE
18 include(FindPackageHandleStandardArgs)
19 FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTimeSDK DEFAULT_MSG QuickTimeSDK_LIBRARIES QuickTimeSDK_INCLUDE_DIRS)
20 mark_as_advanced(QuickTimeSDK_INCLUDE_DIRS QuickTimeSDK_CVClient_LIBRARY QuickTimeSDK_QTMLClient_LIBRARY)