Imported Upstream version 2.8.10.2
[platform/upstream/cmake.git] / Modules / FindQuickTime.cmake
1 # Locate QuickTime
2 # This module defines
3 # QUICKTIME_LIBRARY
4 # QUICKTIME_FOUND, if false, do not try to link to gdal
5 # QUICKTIME_INCLUDE_DIR, where to find the headers
6 #
7 # $QUICKTIME_DIR is an environment variable that would
8 # correspond to the ./configure --prefix=$QUICKTIME_DIR
9 #
10 # Created by Eric Wing.
11
12 #=============================================================================
13 # Copyright 2007-2009 Kitware, Inc.
14 #
15 # Distributed under the OSI-approved BSD License (the "License");
16 # see accompanying file Copyright.txt for details.
17 #
18 # This software is distributed WITHOUT ANY WARRANTY; without even the
19 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 # See the License for more information.
21 #=============================================================================
22 # (To distribute this file outside of CMake, substitute the full
23 #  License text for the above reference.)
24
25 find_path(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h QuickTime.h
26   HINTS
27     ENV QUICKTIME_DIR
28   PATH_SUFFIXES
29     include
30 )
31 find_library(QUICKTIME_LIBRARY QuickTime
32   HINTS
33     ENV QUICKTIME_DIR
34   PATH_SUFFIXES
35     lib
36 )
37
38 # handle the QUIETLY and REQUIRED arguments and set QUICKTIME_FOUND to TRUE if
39 # all listed variables are TRUE
40 include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
41 FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTime DEFAULT_MSG QUICKTIME_LIBRARY QUICKTIME_INCLUDE_DIR)