OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / share / CMake / Modules / FindMPEG.cmake
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
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.
12
13 FIND_PATH(MPEG_INCLUDE_DIR mpeg2dec/include/video_out.h
14   /usr/local/include
15   /usr/include
16   /usr/local/livid
17 )
18
19 FIND_LIBRARY(MPEG_mpeg2_LIBRARY mpeg2
20   /usr/local/lib
21   /usr/lib
22   /usr/local/livid/mpeg2dec/libmpeg2/.libs
23 )
24
25 FIND_LIBRARY( MPEG_vo_LIBRARY vo
26   /usr/local/lib
27   /usr/lib
28   /usr/local/livid/mpeg2dec/libvo/.libs
29 )
30
31 SET( MPEG_FOUND "NO" )
32 IF(MPEG_INCLUDE_DIR)
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)
38