2019-09-10 06:15:40 +02:00
|
|
|
find_package(PkgConfig QUIET)
|
2020-03-06 06:15:07 +01:00
|
|
|
pkg_check_modules(PC_AviSynth QUIET avisynth)
|
2019-09-02 01:09:07 +02:00
|
|
|
find_path(AviSynth_INCLUDE_DIRS
|
|
|
|
NAMES avisynth.h
|
2020-03-06 06:15:07 +01:00
|
|
|
PATH_SUFFIXES avisynth
|
2019-09-10 06:15:40 +02:00
|
|
|
HINTS ${PC_AviSynth_INCLUDE_DIRS}
|
2019-09-02 01:09:07 +02:00
|
|
|
)
|
2020-03-06 06:15:07 +01:00
|
|
|
find_library(AviSynth_SHARED_LIBRARY
|
2019-09-02 01:09:07 +02:00
|
|
|
NAMES avisynth
|
2019-09-10 06:15:40 +02:00
|
|
|
PATH_SUFFIXES c_api
|
|
|
|
HINTS ${PC_AviSynth_LIBRARY_DIRS}
|
2019-09-02 01:09:07 +02:00
|
|
|
)
|
|
|
|
set(AviSynth_VERSION ${PC_AviSynth_VERSION})
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(AviSynth
|
|
|
|
FOUND_VAR AviSynth_FOUND
|
|
|
|
REQUIRED_VARS
|
2020-03-06 06:15:07 +01:00
|
|
|
AviSynth_SHARED_LIBRARY
|
2019-09-02 01:09:07 +02:00
|
|
|
AviSynth_INCLUDE_DIRS
|
|
|
|
VERSION_VAR AviSynth_VERSION
|
|
|
|
)
|