mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
655 B
21 lines
655 B
14 years ago
|
project(opencv_ffmpeg)
|
||
|
|
||
|
if(MSVC64 OR MINGW64)
|
||
|
set(FFMPEG_SUFFIX _64)
|
||
|
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}")
|
||
|
|
||
|
add_custom_target(opencv_ffmpeg ALL
|
||
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||
|
${module_name} ${bin_dir}/${module_bare_name}
|
||
|
COMMENT "Copying ${module_name} to the output directory")
|
||
|
|
||
|
install(FILES ${module_name} DESTINATION bin COMPONENT main)
|