From 75dd21012a3aebd0db158b941109c3ff6945eea1 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Thu, 27 Aug 2015 11:48:42 -0400 Subject: [PATCH] install ffmpeg on windows --- share/openbr/cmake/InstallDependencies.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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}) -- libgit2 0.21.4