1 # - Locate AVIFILE library and include paths
2 # AVIFILE (http://avifile.sourceforge.net/)is a set of libraries for
4 # to use various AVI codecs. Support is limited beyond Linux. Windows
5 # provides native AVI support, and so doesn't need this library.
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
14 FIND_PATH(AVIFILE_INCLUDE_DIR avifile.h
15 /usr/local/avifile/include
16 /usr/local/include/avifile
20 FIND_LIBRARY(AVIFILE_AVIPLAY_LIBRARY aviplay
21 /usr/local/avifile/lib
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)