2019-01-14 18:33:38 +08:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
2021-02-04 06:04:35 +08:00
|
|
|
get_filename_component(OpenCV_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../.." ABSOLUTE)
|
|
|
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVPluginStandalone.cmake")
|
|
|
|
|
|
|
|
# scan dependencies
|
2019-01-14 18:33:38 +08:00
|
|
|
set(WITH_FFMPEG ON)
|
|
|
|
set(OPENCV_FFMPEG_SKIP_BUILD_CHECK ON)
|
2021-02-04 06:04:35 +08:00
|
|
|
include("${OpenCV_SOURCE_DIR}/modules/videoio/cmake/init.cmake")
|
|
|
|
|
|
|
|
set(OPENCV_PLUGIN_DEPS core imgproc imgcodecs)
|
|
|
|
ocv_create_plugin(videoio "opencv_videoio_ffmpeg" "ocv.3rdparty.ffmpeg" "FFmpeg" "src/cap_ffmpeg.cpp")
|
2019-01-14 18:33:38 +08:00
|
|
|
|
|
|
|
message(STATUS "FFMPEG_libavcodec_VERSION=${FFMPEG_libavcodec_VERSION}")
|
|
|
|
message(STATUS "FFMPEG_libavformat_VERSION=${FFMPEG_libavformat_VERSION}")
|
|
|
|
message(STATUS "FFMPEG_libavutil_VERSION=${FFMPEG_libavutil_VERSION}")
|
|
|
|
message(STATUS "FFMPEG_libswscale_VERSION=${FFMPEG_libswscale_VERSION}")
|
|
|
|
message(STATUS "FFMPEG_libavresample_VERSION=${FFMPEG_libavresample_VERSION}")
|
2022-11-12 06:28:02 +08:00
|
|
|
if(OPENCV_FFMPEG_ENABLE_LIBAVDEVICE)
|
|
|
|
message(STATUS "FFMPEG_libavdevice_VERSION=${FFMPEG_libavdevice_VERSION}")
|
|
|
|
endif()
|