Functions
FindFFMPEG.cmake File Reference

Go to the source code of this file.

Functions

function _ffmpeg_find (component, headername)
 Provides the following variables: More...
 

Function Documentation

◆ _ffmpeg_find()

function _ffmpeg_find ( component  ,
headername   
)

Provides the following variables:

  • FFMPEG_INCLUDE_DIRS: Include directories necessary to use FFMPEG.
  • FFMPEG_LIBRARIES: Libraries necessary to use FFMPEG. Note that this only includes libraries for the components requested.
  • FFMPEG_VERSION: The version of FFMPEG found.

The following components are supported:

  • avcodec
  • avdevice
  • avfilter
  • avformat
  • avresample
  • avutil
  • swresample
  • swscale

For each component, the following are provided:

  • FFMPEG_<component>_FOUND: Libraries for the component.
  • FFMPEG_<component>_INCLUDE_DIRS: Include directories for the component.
  • FFMPEG_<component>_LIBRARIES: Libraries for the component.
  • FFMPEG::<component>: A target to use with target_link_libraries.

Note that only components requested with COMPONENTS or OPTIONAL_COMPONENTS are guaranteed to set these variables or provide targets.

Definition at line 32 of file FindFFMPEG.cmake.