forked from mia/Aegisub
Add default path on Windows in FindAviSynth.cmake
This commit is contained in:
parent
98abe53b15
commit
533716c6c0
1 changed files with 15 additions and 5 deletions
|
@ -2,14 +2,24 @@ find_package(PkgConfig QUIET)
|
||||||
pkg_check_modules(PC_AviSynth QUIET avisynth)
|
pkg_check_modules(PC_AviSynth QUIET avisynth)
|
||||||
find_path(AviSynth_INCLUDE_DIRS
|
find_path(AviSynth_INCLUDE_DIRS
|
||||||
NAMES avisynth.h
|
NAMES avisynth.h
|
||||||
|
PATHS "C:/Program Files/AviSynth+/FilterSDK/include" "C:/Program Files (x86)/AviSynth+/FilterSDK/include"
|
||||||
PATH_SUFFIXES avisynth
|
PATH_SUFFIXES avisynth
|
||||||
HINTS ${PC_AviSynth_INCLUDE_DIRS}
|
HINTS ${PC_AviSynth_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
find_library(AviSynth_SHARED_LIBRARY
|
if(WIN32)
|
||||||
NAMES avisynth
|
find_file(AviSynth_SHARED_LIBRARY
|
||||||
PATH_SUFFIXES c_api
|
NAMES AviSynth.dll
|
||||||
HINTS ${PC_AviSynth_LIBRARY_DIRS}
|
PATHS "C:/Windows/System32/"
|
||||||
)
|
PATH_SUFFIXES c_api
|
||||||
|
HINTS ${PC_AviSynth_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
find_library(AviSynth_SHARED_LIBRARY
|
||||||
|
NAMES avisynth
|
||||||
|
PATH_SUFFIXES c_api
|
||||||
|
HINTS ${PC_AviSynth_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
set(AviSynth_VERSION ${PC_AviSynth_VERSION})
|
set(AviSynth_VERSION ${PC_AviSynth_VERSION})
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(AviSynth
|
find_package_handle_standard_args(AviSynth
|
||||||
|
|
Loading…
Reference in a new issue