2018-02-21 16:39:48 -08:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
|
|
|
find_path(FFMPEG_INCLUDE_DIRS NAMES libavcodec/avcodec.h)
|
|
|
|
unset(FFMPEG_LIBRARIES)
|
|
|
|
foreach(FFMPEG_SUBLIBRARY avformat avdevice avcodec avutil swscale)
|
|
|
|
find_library(FFMPEG_lib${FFMPEG_SUBLIBRARY}_LIBRARY NAMES ${FFMPEG_SUBLIBRARY})
|
|
|
|
list(APPEND FFMPEG_LIBRARIES ${FFMPEG_lib${FFMPEG_SUBLIBRARY}_LIBRARY})
|
|
|
|
endforeach()
|
2019-04-05 02:32:10 -03:00
|
|
|
if(WIN32)
|
|
|
|
list(APPEND FFMPEG_LIBRARIES wsock32 ws2_32 Secur32)
|
|
|
|
endif()
|
2018-02-21 16:39:48 -08:00
|
|
|
|
2018-03-12 22:13:14 +09:00
|
|
|
find_package_handle_standard_args(FFMPEG REQUIRED_VARS FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIRS)
|