FindMPEG.cmake 942 B

1234567891011121314151617181920212223242526272829
  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 required 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/livid
  11. )
  12. FIND_LIBRARY(MPEG_mpeg2_LIBRARY mpeg2
  13. /usr/local/livid/mpeg2dec/libmpeg2/.libs
  14. )
  15. FIND_LIBRARY( MPEG_vo_LIBRARY vo
  16. /usr/local/livid/mpeg2dec/libvo/.libs
  17. )
  18. # handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if
  19. # all listed variables are TRUE
  20. INCLUDE(FindPackageHandleStandardArgs)
  21. FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG DEFAULT_MSG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY)
  22. IF(MPEG_FOUND)
  23. SET( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} )
  24. ENDIF(MPEG_FOUND)