FindMPEG.cmake 922 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Find the native MPEG includes and library
  3. #
  4. # This module defines
  5. # MPEG_INCLUDE_DIR, where to find MPEG.h, etc.
  6. # MPEG_LIBRARIES, the libraries to link against to use MPEG.
  7. # MPEG_FOUND, If false, do not try to use MPEG.
  8. # also defined, but not for general use are
  9. # MPEG_mpeg2_LIBRARY, where to find the MPEG library.
  10. # MPEG_vo_LIBRARY, where to find the vo library.
  11. FIND_PATH(MPEG_INCLUDE_DIR mpeg2dec/include/video_out.h
  12. /usr/local/include
  13. /usr/include
  14. /usr/local/livid
  15. )
  16. FIND_LIBRARY(MPEG_mpeg2_LIBRARY mpeg2
  17. /usr/local/lib
  18. /usr/lib
  19. /usr/local/livid/mpeg2dec/libmpeg2/.libs
  20. )
  21. FIND_LIBRARY( MPEG_vo_LIBRARY vo
  22. /usr/local/lib
  23. /usr/lib
  24. /usr/local/livid/mpeg2dec/libvo/.libs
  25. )
  26. SET( MPEG_FOUND "NO" )
  27. IF(MPEG_INCLUDE_DIR)
  28. IF(MPEG_mpeg2_LIBRARY)
  29. SET( MPEG_FOUND "YES" )
  30. SET( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} )
  31. ENDIF(MPEG_mpeg2_LIBRARY)
  32. ENDIF(MPEG_INCLUDE_DIR)