FindQuickTimeSDK.cmake 1.1 KB
Newer Older
1 2 3 4 5 6 7
# - Find QuickTime SDK installation
# Find the QuickTime includes and library
# This module defines
#  QuickTime_INCLUDE_DIRS, where to find QuickTime.h, etc.
#  QuickTime_LIBRARIES, libraries to link against to use QuickTime.
#  QuickTime_FOUND, If false, do not try to use QuickTime.

8
find_path(QuickTimeSDK_INCLUDE_DIRS QuickTime.h PATHS
9 10 11
    "$ENV{PROGRAMFILES}/QuickTime SDK/CIncludes"
)

12 13 14 15
set(QuickTimeSDK_LIBRARY_PATH "${QuickTimeSDK_INCLUDE_DIRS}/../Libraries")
find_library(QuickTimeSDK_CVClient_LIBRARY CVClient ${QuickTimeSDK_LIBRARY_PATH} NO_DEFAULT_PATH)
find_library(QuickTimeSDK_QTMLClient_LIBRARY QTMLClient ${QuickTimeSDK_LIBRARY_PATH} NO_DEFAULT_PATH)
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)