From 89a6937c00296aeecc393032142459b973abfa64 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 8 Jun 2020 09:17:13 +0000 Subject: [PATCH] videoio: fix plugins build --- modules/videoio/cmake/plugin_standalone.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/videoio/cmake/plugin_standalone.cmake b/modules/videoio/cmake/plugin_standalone.cmake index 14be0e8af3..190cb82808 100644 --- a/modules/videoio/cmake/plugin_standalone.cmake +++ b/modules/videoio/cmake/plugin_standalone.cmake @@ -34,7 +34,10 @@ function(ocv_create_videoio_plugin default_name target target_desc videoio_src_f set(imgproc_ROOT "${modules_ROOT}/imgproc") set(imgcodecs_ROOT "${modules_ROOT}/imgcodecs") - add_library(${OPENCV_PLUGIN_NAME} MODULE "${videoio_ROOT}/src/${videoio_src_file}") + add_library(${OPENCV_PLUGIN_NAME} MODULE + "${videoio_ROOT}/src/${videoio_src_file}" + ${OPENCV_PLUGIN_EXTRA_SRC_FILES} + ) target_include_directories(${OPENCV_PLUGIN_NAME} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}" "${videoio_ROOT}/src"