[FFmpeg-trac] #9881(build system:new): Support CMake build system.

FFmpeg trac at avcodec.org
Thu Aug 18 13:14:55 EEST 2022


#9881: Support CMake build system.
-------------------------------------+-------------------------------------
             Reporter:  Haowei Hsu   |                     Type:
                                     |  enhancement
               Status:  new          |                 Priority:  normal
            Component:  build        |                  Version:  git-
  system                             |  master
             Keywords:  cmake        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Since CMake is the most popular build system of C/C++, I would expect that
 FFmpeg can support using CMake to compile the source code. Moreover, I
 hope that CMake can provide Config files for `find_package()` and Imported
 Targets.

 Normally, there would be the following files generated for
 `find_package()` in Config Mode:

 - `ffmpeg-config.cmake`
 - `ffmpeg-config-version.cmake`
 - `ffmpeg-targets.cmake`
 - `ffmpeg-targets-[debug|release].cmake`

 As for Imported Targets, consider FFmpeg has several components, I suggest
 that it take Qt or Poco for reference, providing the following Component
 Imported Targets with the namespace `ffmpeg::`:

 - `ffmpeg::avcodec`
 - `ffmpeg::avformat`
 - `ffmpeg::avfilter`
 - `ffmpeg::avdevice`
 - `ffmpeg::avutil`
 - `ffmpeg::swscale`
 - `ffmpeg::swresample`
 - `ffmpeg::postproc`
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9881>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list