Commit 6389303c authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #14793 from mshabunin:fix-plugin-install

parents 81fad9e2 5015829c
...@@ -29,7 +29,12 @@ function(ocv_create_builtin_videoio_plugin name target) ...@@ -29,7 +29,12 @@ function(ocv_create_builtin_videoio_plugin name target)
CXX_STANDARD 11 CXX_STANDARD 11
CXX_VISIBILITY_PRESET hidden CXX_VISIBILITY_PRESET hidden
) )
install(TARGETS ${name} LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT plugins OPTIONAL)
if(WIN32)
install(TARGETS ${name} OPTIONAL LIBRARY DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT plugins)
else()
install(TARGETS ${name} OPTIONAL LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT plugins)
endif()
add_dependencies(opencv_videoio_plugins ${name}) add_dependencies(opencv_videoio_plugins ${name})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment