You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

  1. # Locate AVIFILE library and include paths
  2. # AVIFILE (http://avifile.sourceforge.net/ )is a set of library for i386 machines
  3. # to use various AVI codecs. Support is limited beyond Linux. Windows
  4. # provides native AVI support, and so doesn't need this library.
  5. # This module defines
  6. # AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.
  7. # AVIFILE_LIBRARIES, the libraries to link against to use AVIFILE
  8. # AVIFILE_DEFINITIONS, definitions to use when compiling code that uses AVIFILE.
  9. # AVIFILE_FOUND, If false, don't try to use AVIFILE.
  10. IF (UNIX)
  11. FIND_PATH(AVIFILE_INCLUDE_DIR avifile.h
  12. /usr/local/avifile/include
  13. /usr/local/include/avifile
  14. /usr/include
  15. )
  16. FIND_LIBRARY(AVIFILE_AVIPLAY_LIBRARY aviplay
  17. /usr/local/avifile/lib
  18. /usr/local/lib
  19. /usr/lib
  20. )
  21. ENDIF (UNIX)
  22. SET (AVIFILE_FOUND "NO")
  23. IF(AVIFILE_INCLUDE_DIR)
  24. IF(AVIFILE_AVIPLAY_LIBRARY)
  25. SET( AVIFILE_LIBRARIES ${AVIFILE_AVIPLAY_LIBRARY} )
  26. SET( AVIFILE_FOUND "YES" )
  27. SET( AVIFILE_DEFINITIONS "")
  28. ENDIF(AVIFILE_AVIPLAY_LIBRARY)
  29. ENDIF(AVIFILE_INCLUDE_DIR)