mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
Fixing ffmpeg dll copying on Windows
This commit is contained in:
parent
16fb7d231e
commit
469cc42aee
8
3rdparty/ffmpeg/CMakeLists.txt
vendored
8
3rdparty/ffmpeg/CMakeLists.txt
vendored
@ -7,14 +7,10 @@ endif()
|
||||
set(module_bare_name "opencv_ffmpeg${FFMPEG_SUFFIX}.dll")
|
||||
set(module_name "${CMAKE_CURRENT_SOURCE_DIR}/${module_bare_name}")
|
||||
|
||||
get_target_property(bin_dir opencv_traincascade LOCATION)
|
||||
get_filename_component(bin_dir ${bin_dir} PATH)
|
||||
|
||||
message(STATUS "ffmpeg output dir: ${bin_dir}")
|
||||
message(STATUS "ffmpeg output dir: ${EXECUTABLE_OUTPUT_PATH}")
|
||||
|
||||
add_custom_target(opencv_ffmpeg ALL
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${module_name} ${bin_dir}/${module_bare_name}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${module_name}" "${EXECUTABLE_OUTPUT_PATH}/${module_bare_name}"
|
||||
COMMENT "Copying ${module_name} to the output directory")
|
||||
|
||||
install(FILES ${module_name} DESTINATION bin COMPONENT main)
|
||||
|
Loading…
Reference in New Issue
Block a user