Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / FindMPEG.cmake
blob7b0760a17aa82bf2b71f6828ac4c3b807dd130ac
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.
10 FIND_PATH(MPEG_INCLUDE_DIR mpeg2dec/include/video_out.h
11   /usr/local/livid
14 FIND_LIBRARY(MPEG_mpeg2_LIBRARY mpeg2
15   /usr/local/livid/mpeg2dec/libmpeg2/.libs
18 FIND_LIBRARY( MPEG_vo_LIBRARY vo
19   /usr/local/livid/mpeg2dec/libvo/.libs
22 # handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if 
23 # all listed variables are TRUE
24 INCLUDE(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG DEFAULT_MSG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY)
27 IF(MPEG_FOUND)
28   SET( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} )
29 ENDIF(MPEG_FOUND)