FindAVIFile.cmake 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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
  11. #=============================================================================
  12. # Copyright 2002-2009 Kitware, Inc.
  13. #
  14. # Distributed under the OSI-approved BSD License (the "License");
  15. # see accompanying file Copyright.txt for details.
  16. #
  17. # This software is distributed WITHOUT ANY WARRANTY; without even the
  18. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19. # See the License for more information.
  20. #=============================================================================
  21. # (To distributed this file outside of CMake, substitute the full
  22. # License text for the above reference.)
  23. IF (UNIX)
  24. FIND_PATH(AVIFILE_INCLUDE_DIR avifile.h
  25. /usr/local/avifile/include
  26. /usr/local/include/avifile
  27. )
  28. FIND_LIBRARY(AVIFILE_AVIPLAY_LIBRARY aviplay
  29. /usr/local/avifile/lib
  30. )
  31. ENDIF (UNIX)
  32. SET (AVIFILE_FOUND "NO")
  33. IF(AVIFILE_INCLUDE_DIR)
  34. IF(AVIFILE_AVIPLAY_LIBRARY)
  35. SET( AVIFILE_LIBRARIES ${AVIFILE_AVIPLAY_LIBRARY} )
  36. SET( AVIFILE_FOUND "YES" )
  37. SET( AVIFILE_DEFINITIONS "")
  38. ENDIF(AVIFILE_AVIPLAY_LIBRARY)
  39. ENDIF(AVIFILE_INCLUDE_DIR)
  40. MARK_AS_ADVANCED(AVIFILE_INCLUDE_DIR AVIFILE_AVIPLAY_LIBRARY)