FindMPEG.cmake 924 B

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