ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Modules / FindAVIFile.cmake
blobf393bc33f23538fdd1fcec11514cea5fbc48a17a
1 # - Locate AVIFILE library and include paths
2 # AVIFILE (http://avifile.sourceforge.net/)is a set of libraries for 
3 # i386 machines
4 # to use various AVI codecs. Support is limited beyond Linux. Windows
5 # provides native AVI support, and so doesn't need this library.
6 # This module defines
7 #  AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.
8 #  AVIFILE_LIBRARIES, the libraries to link against
9 #  AVIFILE_DEFINITIONS, definitions to use when compiling
10 #  AVIFILE_FOUND, If false, don't try to use AVIFILE
12 IF (UNIX)
14   FIND_PATH(AVIFILE_INCLUDE_DIR avifile.h
15     /usr/local/avifile/include
16     /usr/local/include/avifile
17     /usr/include
18   )
20   FIND_LIBRARY(AVIFILE_AVIPLAY_LIBRARY aviplay
21     /usr/local/avifile/lib
22     /usr/local/lib
23     /usr/lib
24   )
26 ENDIF (UNIX)
28 SET (AVIFILE_FOUND "NO")
30 IF(AVIFILE_INCLUDE_DIR)
31   IF(AVIFILE_AVIPLAY_LIBRARY)
32     SET( AVIFILE_LIBRARIES  ${AVIFILE_AVIPLAY_LIBRARY} )
33     SET( AVIFILE_FOUND "YES" )
34     SET( AVIFILE_DEFINITIONS "")
36   ENDIF(AVIFILE_AVIPLAY_LIBRARY)
37 ENDIF(AVIFILE_INCLUDE_DIR)