Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
7db6c314
Commit
7db6c314
authored
Jul 04, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected opencv_ffmpeg.dll copying when the target dir does not exists yet
parent
391603e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
CMakeLists.txt
3rdparty/ffmpeg/CMakeLists.txt
+3
-2
No files found.
3rdparty/ffmpeg/CMakeLists.txt
View file @
7db6c314
...
@@ -4,7 +4,8 @@ if(MSVC64 OR MINGW64)
...
@@ -4,7 +4,8 @@ if(MSVC64 OR MINGW64)
set
(
FFMPEG_SUFFIX _64
)
set
(
FFMPEG_SUFFIX _64
)
endif
()
endif
()
set
(
module_name
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/opencv_ffmpeg
${
FFMPEG_SUFFIX
}
.dll"
)
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_core LOCATION
)
get_target_property
(
bin_dir opencv_core LOCATION
)
get_filename_component
(
bin_dir
${
bin_dir
}
PATH
)
get_filename_component
(
bin_dir
${
bin_dir
}
PATH
)
...
@@ -13,7 +14,7 @@ message(STATUS "ffmpeg output dir: ${bin_dir}")
...
@@ -13,7 +14,7 @@ message(STATUS "ffmpeg output dir: ${bin_dir}")
add_custom_target
(
opencv_ffmpeg ALL
add_custom_target
(
opencv_ffmpeg ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
module_name
}
${
bin_dir
}
${
module_name
}
${
bin_dir
}
/
${
module_bare_name
}
COMMENT
"Copying
${
module_name
}
to the output directory"
)
COMMENT
"Copying
${
module_name
}
to the output directory"
)
install
(
FILES
${
module_name
}
DESTINATION bin COMPONENT main
)
install
(
FILES
${
module_name
}
DESTINATION bin COMPONENT main
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment