Skip to content

Commit

Permalink
Check dependencies for VapourSynth libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Zhao <[email protected]>
  • Loading branch information
GZGavinZhao committed Dec 11, 2023
1 parent d34c3d2 commit d01420e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions VapourSynth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ if(Build_VapourSynth_Plugin)

aux_source_directory(src SOURCE)

find_package(PkgConfig REQUIRED)
pkg_check_modules(VAPOURSYNTH REQUIRED IMPORTED_TARGET vapoursynth)

add_library(${PROJECT_NAME} SHARED ${SOURCE})
target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::VAPOURSYNTH)
target_include_directories(${PROJECT_NAME} PUBLIC ${VAPOURSYNTH_INCLUDE_DIRS})

if(Other_Optimization_For_Other)
if(MSVC)
Expand Down

0 comments on commit d01420e

Please sign in to comment.