2019-09-10 06:15:40 +02:00
|
|
|
find_package(PkgConfig QUIET)
|
2019-03-22 11:57:34 +01:00
|
|
|
pkg_check_modules(PC_FFMS2 QUIET ffms2)
|
|
|
|
find_path(FFMS2_INCLUDE_DIRS
|
|
|
|
NAMES ffms.h ffmscompat.h
|
2019-09-10 06:15:40 +02:00
|
|
|
HINTS ${PC_FFMS2_INCLUDE_DIRS}
|
2019-03-22 11:57:34 +01:00
|
|
|
)
|
|
|
|
find_library(FFMS2_LIBRARIES
|
|
|
|
NAMES ffms2
|
2019-09-10 06:15:40 +02:00
|
|
|
HINTS ${PC_FFMS2_LIBRARY_DIRS}
|
2019-03-22 11:57:34 +01:00
|
|
|
)
|
|
|
|
set(FFMS2_VERSION ${PC_FFMS2_VERSION})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(FFMS2
|
|
|
|
FOUND_VAR FFMS2_FOUND
|
|
|
|
REQUIRED_VARS
|
|
|
|
FFMS2_LIBRARIES
|
|
|
|
FFMS2_INCLUDE_DIRS
|
|
|
|
VERSION_VAR FFMS2_VERSION
|
2019-09-10 06:15:40 +02:00
|
|
|
)
|