diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ed5845d4..1a37aa0c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -71,14 +71,17 @@ if (PKG_CONFIG_FOUND AND WITH_FFMPEG) pkg_check_modules (AVFORMAT REQUIRED libavformat) pkg_check_modules (AVUTIL REQUIRED libavutil) pkg_check_modules (AVCODEC REQUIRED libavcodec) + pkg_check_modules (SWSCALE REQUIRED libswscale) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVFORMAT_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVUTIL_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVCODEC_LIBRARIES}) + set (EXTRA_LIBS ${EXTRA_LIBS} ${SWSCALE_LIBRARIES}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVFORMAT_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVUTIL_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVCODEC_INCLUDE_DIRS}) + set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${SWSCALE_INCLUDE_DIRS}) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HARDSUBX") diff --git a/src/lib_ccx/CMakeLists.txt b/src/lib_ccx/CMakeLists.txt index e44416bb..b9951c0c 100644 --- a/src/lib_ccx/CMakeLists.txt +++ b/src/lib_ccx/CMakeLists.txt @@ -8,14 +8,17 @@ if (WITH_FFMPEG) pkg_check_modules (AVFORMAT REQUIRED libavformat) pkg_check_modules (AVUTIL REQUIRED libavutil) pkg_check_modules (AVCODEC REQUIRED libavcodec) + pkg_check_modules (SWSCALE REQUIRED libswscale) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVFORMAT_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVUTIL_LIBRARIES}) set (EXTRA_LIBS ${EXTRA_LIBS} ${AVCODEC_LIBRARIES}) + set (EXTRA_LIBS ${EXTRA_LIBS} ${SWSCALE_LIBRARIES}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVFORMAT_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVUTIL_INCLUDE_DIRS}) set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVCODEC_INCLUDE_DIRS}) + set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${SWSCALE_INCLUDE_DIRS}) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HARDSUBX")