cmake_modules/FindFFMPEG.cmake
changeset 7540 cc6c656f70b5
parent 7538 2d6e69b392cb
child 7617 0ac281e1b58b
equal deleted inserted replaced
7538:2d6e69b392cb 7540:cc6c656f70b5
     1 # - Try to find ffmpeg libraries (libavcodec, libavformat and libavutil)
     1 # - Try to find ffmpeg libraries (libavcodec, libavformat and libavutil)
     2 # Once done this will define
     2 # Once done this will define
     3 #
     3 #
     4 #  FFMPEG_FOUND - system has ffmpeg
     4 #  FFMPEG_FOUND - system has ffmpeg or libav
     5 #  FFMPEG_INCLUDE_DIR - the ffmpeg include directory
     5 #  FFMPEG_INCLUDE_DIR - the ffmpeg include directory
     6 #  FFMPEG_LIBRARIES - Link these to use ffmpeg
     6 #  FFMPEG_LIBRARIES - Link these to use ffmpeg
     7 #  FFMPEG_LIBAVCODEC
     7 #  FFMPEG_LIBAVCODEC
     8 #  FFMPEG_LIBAVFORMAT
     8 #  FFMPEG_LIBAVFORMAT
     9 #  FFMPEG_LIBAVUTIL
     9 #  FFMPEG_LIBAVUTIL
    65 
    65 
    66   endif (FFMPEG_FOUND)
    66   endif (FFMPEG_FOUND)
    67 
    67 
    68   if (FFMPEG_FOUND)
    68   if (FFMPEG_FOUND)
    69     if (NOT FFMPEG_FIND_QUIETLY)
    69     if (NOT FFMPEG_FIND_QUIETLY)
    70       message(STATUS "Found FFMPEG: ${FFMPEG_LIBRARIES} ${FFMPEG_INCLUDE_DIR}")
    70       message(STATUS "Found FFMPEG or Libav: ${FFMPEG_LIBRARIES}, ${FFMPEG_INCLUDE_DIR}")
    71     endif (NOT FFMPEG_FIND_QUIETLY)
    71     endif (NOT FFMPEG_FIND_QUIETLY)
    72   else (FFMPEG_FOUND)
    72   else (FFMPEG_FOUND)
    73     if (FFMPEG_FIND_REQUIRED)
    73     if (FFMPEG_FIND_REQUIRED)
    74       message(FATAL_ERROR "Could not find FFMPEG libavcodec or libavformat or libavutil")
    74       message(FATAL_ERROR "Could not find libavcodec or libavformat or libavutil")
    75     endif (FFMPEG_FIND_REQUIRED)
    75     endif (FFMPEG_FIND_REQUIRED)
    76   endif (FFMPEG_FOUND)
    76   endif (FFMPEG_FOUND)
    77 
    77 
    78 endif (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
    78 endif (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
    79 
    79