2019-05-06 14:18:31 +03:00
|
|
|
|
2023-08-09 13:08:16 +03:00
|
|
|
find_package(PkgConfig)
|
2019-05-06 14:18:31 +03:00
|
|
|
|
|
|
|
if (PKG_CONFIG_FOUND)
|
2019-12-19 10:43:33 +03:00
|
|
|
pkg_check_modules(SWScale libswscale)
|
2019-05-06 14:18:31 +03:00
|
|
|
endif()
|
|
|
|
|
2019-12-19 10:43:33 +03:00
|
|
|
find_path(SWScale_INCLUDE_DIR libswscale/swscale.h PATHS ${SWScale_INCLUDE_DIRS})
|
|
|
|
find_library(SWScale_LIBRARY swscale PATHS ${SWScale_LIBRARY_DIRS})
|
2019-05-06 14:18:31 +03:00
|
|
|
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SWScale DEFAULT_MSG SWScale_INCLUDE_DIR SWScale_LIBRARY)
|
|
|
|
|
|
|
|
mark_as_advanced(SWScale_INCLUDE_DIR SWScale_LIBRARY)
|
|
|
|
|