ENH: fix advanced bug
[cmake.git] / Modules / FindQuickTime.cmake
blob00bc3ec72724ce7770facad4a2c53748ebc4cd7a
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
7 # $QUICKTIME_DIR is an environment variable that would
8 # correspond to the ./configure --prefix=$QUICKTIME_DIR
10 # Created by Eric Wing. 
12 # QuickTime on OS X looks different than QuickTime for Windows,
13 # so I am going to case the two.
15 IF(APPLE)
16   FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h)
17   FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
18 ELSE(APPLE)
19   FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h
20     $ENV{QUICKTIME_DIR}/include
21     $ENV{QUICKTIME_DIR}
22     NO_DEFAULT_PATH
23   )
25   FIND_PATH(QUICKTIME_INCLUDE_DIR QuickTime.h)
27   FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime
28     $ENV{QUICKTIME_DIR}/lib
29     $ENV{QUICKTIME_DIR}
30     NO_DEFAULT_PATH
31   )
33   FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime)
34 ENDIF(APPLE)
36 SET(QUICKTIME_FOUND "NO")
37 IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
38   SET(QUICKTIME_FOUND "YES")
39 ENDIF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)