2 # Find the native MPEG2 includes and library
5 # MPEG2_INCLUDE_DIR, where to find mpeg2dec/mpeg2.h, etc.
6 # MPEG2_LIBRARIES, the libraries to link against to use MPEG2.
7 # MPEG2_FOUND, If false, do not try to use MPEG2.
9 # also defined, but not for general use are
10 # MPEG2_mpeg2_LIBRARY, where to find the MPEG2 library.
11 # MPEG2_vo_LIBRARY, where to find the vo library.
13 FIND_PATH(MPEG2_INCLUDE_DIR mpeg2.h
19 FIND_LIBRARY(MPEG2_mpeg2_LIBRARY mpeg2
22 /usr/local/livid/mpeg2dec/libmpeg2/.libs
25 FIND_LIBRARY( MPEG2_vo_LIBRARY vo
28 /usr/local/livid/mpeg2dec/libvo/.libs
31 SET( MPEG2_FOUND "NO" )
33 IF(MPEG2_mpeg2_LIBRARY)
34 SET( MPEG2_FOUND "YES" )
35 SET( MPEG2_LIBRARIES ${MPEG2_mpeg2_LIBRARY}
38 #some native mpeg2 installations will depend
39 #on libSDL, if found, add it in.
40 INCLUDE( ${MODULE_PATH}/NewCMake/FindSDL.cmake )
42 SET( MPEG2_LIBRARIES ${MPEG2_LIBRARIES} ${SDL_LIBRARY})
45 ENDIF(MPEG2_mpeg2_LIBRARY)
46 ENDIF(MPEG2_INCLUDE_DIR)