Skip to content

Commit 0a7b1c2

Browse files
committed
Check dependencies for VapourSynth libraries
Signed-off-by: Gavin Zhao <[email protected]>
1 parent 5825f48 commit 0a7b1c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

VapourSynth/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ if(Build_VapourSynth_Plugin)
33

44
aux_source_directory(src SOURCE)
55

6+
find_package(PkgConfig REQUIRED)
7+
pkg_check_modules(VAPOURSYNTH REQUIRED IMPORTED_TARGET vapoursynth)
8+
69
add_library(${PROJECT_NAME} SHARED ${SOURCE})
10+
target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::VAPOURSYNTH)
11+
target_include_directories(${PROJECT_NAME} PUBLIC ${VAPOURSYNTH_INCLUDE_DIRS})
712

813
if(Other_Optimization_For_Other)
914
if(MSVC)

0 commit comments

Comments
 (0)