diff --git a/share/openbr/cmake/InstallDependencies.cmake b/share/openbr/cmake/InstallDependencies.cmake index 25ee6c1..081f869 100644 --- a/share/openbr/cmake/InstallDependencies.cmake +++ b/share/openbr/cmake/InstallDependencies.cmake @@ -129,7 +129,13 @@ endfunction() function(install_ffmpeg) if(${BR_INSTALL_DEPENDENCIES}) if(WIN32) - + list(GET OpenCV_LIB_DIR 0 cv_lib_stripped) + if(${CMAKE_SIZEOF_VOID_P} MATCHES 8) + set(FFMPEGSUFFIX "_64") + else() + set(FFMPEGSUFFIX "") + endif() + install(FILES ${cv_lib_stripped}/../bin/${BR_INSTALL_DEPENDENCIES_PREFIX}opencv_ffmpeg${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}${FFMPEGSUFFIX}.dll DESTINATION bin) else() find_library(AVCODEC avcodec) install_ffmpeg_help(${AVCODEC})