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

This commit is contained in:
Alexander Alekhin 2019-06-13 14:05:55 +00:00
commit 6389303c1c

View File

@ -29,7 +29,12 @@ function(ocv_create_builtin_videoio_plugin name target)
CXX_STANDARD 11
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})