ENH: add support for g77 extra _ at the end of functions that have an _ in the name...
[cmake.git] / Modules / FindQuickTime.cmake
blob5a4a580a32411d3918ecb34e797cdbe485d7e060
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     HINTS
21     $ENV{QUICKTIME_DIR}/include
22     $ENV{QUICKTIME_DIR}
23   )
24   FIND_LIBRARY(QUICKTIME_LIBRARY QuickTime
25     HINTS
26     $ENV{QUICKTIME_DIR}/lib
27     $ENV{QUICKTIME_DIR}
28   )
29 ENDIF(APPLE)
31 SET(QUICKTIME_FOUND "NO")
32 IF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)
33   SET(QUICKTIME_FOUND "YES")
34 ENDIF(QUICKTIME_LIBRARY AND QUICKTIME_INCLUDE_DIR)