Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
bde407fb
Commit
bde407fb
authored
Feb 09, 2006
by
Mathieu Malaterre
Browse files
ENH: Add a ffmpeg cmake module
parent
a53a72c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/FindFFMPEG.cmake
0 → 100644
View file @
bde407fb
#
# Find the native FFMPEG includes and library
#
# This module defines
# FFMPEG_INCLUDE_DIR, where to find avcodec.h, avformat.h ...
# FFMPEG_LIBRARIES, the libraries to link against to use FFMPEG.
# FFMPEG_FOUND, If false, do not try to use FFMPEG.
# also defined, but not for general use are
# FFMPEG_LIBRARY, where to find the FFMPEG library.
# This is usefull to do it this way so that we can always add more libraries
# if needed to FFMPEG_LIBRARIES if ffmpeg ever changes...
FIND_PATH
(
FFMPEG_INCLUDE_DIR ffmpeg/avformat.h
/usr/local/include
/usr/include
)
FIND_LIBRARY
(
FFMPEG_LIBRARY avformat
/usr/local/lib
/usr/lib
)
IF
(
FFMPEG_INCLUDE_DIR
)
IF
(
FFMPEG_LIBRARY
)
SET
(
FFMPEG_FOUND
"YES"
)
SET
(
FFMPEG_LIBRARIES
${
FFMPEG_LIBRARY
}
)
ENDIF
(
FFMPEG_LIBRARY
)
ENDIF
(
FFMPEG_INCLUDE_DIR
)
Write
Preview
Supports
Markdown
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