2 # Find the native MPEG includes and library
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.
9 # also defined, but not for general use are
10 # MPEG_mpeg2_LIBRARY, where to find the MPEG library.
11 # MPEG_vo_LIBRARY, where to find the vo library.
13 FIND_PATH(MPEG_INCLUDE_DIR mpeg2dec/include/video_out.h
19 FIND_LIBRARY(MPEG_mpeg2_LIBRARY mpeg2
22 /usr/local/livid/mpeg2dec/libmpeg2/.libs
25 FIND_LIBRARY( MPEG_vo_LIBRARY vo
28 /usr/local/livid/mpeg2dec/libvo/.libs
31 SET( MPEG_FOUND "NO" )
33 IF(MPEG_mpeg2_LIBRARY)
34 SET( MPEG_FOUND "YES" )
35 SET( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} )
36 ENDIF(MPEG_mpeg2_LIBRARY)
37 ENDIF(MPEG_INCLUDE_DIR)