1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

cmake: generate and install ffmpeg-download.ps1

64-bit only
This commit is contained in:
Alexander Alekhin
2018-06-09 13:08:50 +03:00
parent 0614ee3f95
commit 390f0a5dcd
3 changed files with 70 additions and 0 deletions
+5
View File
@@ -35,3 +35,8 @@ function(download_win_ffmpeg script_var)
set(${script_var} "${FFMPEG_DOWNLOAD_DIR}/ffmpeg_version.cmake" PARENT_SCOPE)
endif()
endfunction()
if(OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT)
configure_file("${CMAKE_CURRENT_LIST_DIR}/ffmpeg-download.ps1.in" "${CMAKE_BINARY_DIR}/win-install/ffmpeg-download.ps1" @ONLY)
install(FILES "${CMAKE_BINARY_DIR}/win-install/ffmpeg-download.ps1" DESTINATION "." COMPONENT libs)
endif()