Commit 75dd21012a3aebd0db158b941109c3ff6945eea1
1 parent
8e532154
install ffmpeg on windows
Showing
1 changed file
with
7 additions
and
1 deletions
share/openbr/cmake/InstallDependencies.cmake
| ... | ... | @@ -129,7 +129,13 @@ endfunction() |
| 129 | 129 | function(install_ffmpeg) |
| 130 | 130 | if(${BR_INSTALL_DEPENDENCIES}) |
| 131 | 131 | if(WIN32) |
| 132 | - | |
| 132 | + list(GET OpenCV_LIB_DIR 0 cv_lib_stripped) | |
| 133 | + if(${CMAKE_SIZEOF_VOID_P} MATCHES 8) | |
| 134 | + set(FFMPEGSUFFIX "_64") | |
| 135 | + else() | |
| 136 | + set(FFMPEGSUFFIX "") | |
| 137 | + endif() | |
| 138 | + 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) | |
| 133 | 139 | else() |
| 134 | 140 | find_library(AVCODEC avcodec) |
| 135 | 141 | install_ffmpeg_help(${AVCODEC}) | ... | ... |