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_GSTREAMER 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_gstreamer" "ocv.3rdparty.gstreamer" "GStreamer" "src/cap_gstreamer.cpp")
|
2019-01-14 18:33:38 +08:00
|
|
|
|
|
|
|
message(STATUS "Using GStreamer: ${GSTREAMER_VERSION}")
|