videoio: fix plugins build
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Mon, 8 Jun 2020 09:17:13 +0000 (09:17 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Mon, 8 Jun 2020 09:17:13 +0000 (09:17 +0000)
modules/videoio/cmake/plugin_standalone.cmake

index 14be0e8..190cb82 100644 (file)
@@ -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"