Repairing Windows build.
This commit is contained in:
parent
877d96462d
commit
a95439d419
12 changed files with 144 additions and 55 deletions
|
@ -15,8 +15,12 @@ target_include_directories(video PUBLIC
|
|||
)
|
||||
set_target_properties( video PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
|
||||
list(APPEND video_LIBS image)
|
||||
|
||||
find_package(PkgConfig QUIET)
|
||||
|
||||
if(PkgConfig)
|
||||
pkg_check_modules(LIBAV IMPORTED_TARGET
|
||||
libavdevice
|
||||
libavfilter
|
||||
libavformat
|
||||
|
@ -24,7 +28,13 @@ pkg_check_modules(LIBAV REQUIRED IMPORTED_TARGET
|
|||
libswresample
|
||||
libswscale
|
||||
libavutil
|
||||
)
|
||||
target_link_libraries( video PUBLIC image PkgConfig::LIBAV)
|
||||
)
|
||||
list(APPEND video_LIBS PkgConfig::LIBAV)
|
||||
else()
|
||||
message(STATUS "LIBRARY CHECK: PkgConfig not found - disabling ffmpeg based video i/o.")
|
||||
endif()
|
||||
|
||||
set_property(TARGET image PROPERTY FOLDER src)
|
||||
target_link_libraries( video PUBLIC ${video_LIBS})
|
||||
|
||||
|
||||
set_property(TARGET video PROPERTY FOLDER src)
|
Loading…
Add table
Add a link
Reference in a new issue