cmake_modules/FindFFMPEG.cmake
changeset 8285 a1500ffdc343
parent 8283 af97cdbb7713
child 8662 bfcc09f2accc
equal deleted inserted replaced
8284:a874d00df4a4 8285:a1500ffdc343
    14 #
    14 #
    15 #  Redistribution and use is allowed according to the terms of the New
    15 #  Redistribution and use is allowed according to the terms of the New
    16 #  BSD license.
    16 #  BSD license.
    17 #
    17 #
    18 
    18 
       
    19 set(FFMPEG_FOUND FALSE)
       
    20 
    19 if (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
    21 if (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
    20   # in cache already
    22   # in cache already
    21   set(FFMPEG_FOUND TRUE)
    23   set(FFMPEG_FOUND TRUE)
    22 else (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
    24 else (FFMPEG_LIBRARIES AND FFMPEG_INCLUDE_DIR)
    23   # silence output option
    25   # silence output option
    24   if (FFMPEG_FIND_QUIETLY)
    26   if (FFMPEG_FIND_QUIETLY)
    25     set(VERBOSITY "QUIET")
    27     set(VERBOSITY "QUIET")
    26   else ()
       
    27     set(VERBOSITY "")
       
    28   endif ()
    28   endif ()
    29   # use pkg-config to get the directories and then use these values
    29   # use pkg-config to get the directories and then use these values
    30   # in the FIND_PATH() and FIND_LIBRARY() calls
    30   # in the FIND_PATH() and FIND_LIBRARY() calls
    31   find_package(PkgConfig)
    31   find_package(PkgConfig)
    32   if (PKG_CONFIG_FOUND)
    32   if (PKG_CONFIG_FOUND)