audacia/lib-src/libsoxr/cmake/Modules/FindLibAVCodec.cmake

24 lines
816 B
CMake
Raw Permalink Normal View History

2018-03-08 16:26:50 +00:00
# SoX Resampler Library Copyright (c) 2007-18 robs@users.sourceforge.net
2013-11-05 04:24:24 +00:00
# Licence for this file: LGPL v2.1 See LICENCE for details.
# - Find AVCODEC
2018-03-08 16:26:50 +00:00
# Find the installation of this package: include-dirs and libraries.
2013-11-05 04:24:24 +00:00
#
2018-03-08 16:26:50 +00:00
# AVCODEC_INCLUDE_DIRS - where to find headers for this package.
# AVCODEC_LIBRARIES - libraries to link to when using this package.
# AVCODEC_FOUND - true iff this package can be found.
2013-11-05 04:24:24 +00:00
2018-03-08 16:26:50 +00:00
if (AVCODEC_INCLUDE_DIRS)
2013-11-05 04:24:24 +00:00
set (AVCODEC_FIND_QUIETLY TRUE)
2018-03-08 16:26:50 +00:00
endif ()
2013-11-05 04:24:24 +00:00
2018-03-08 16:26:50 +00:00
find_path (AVCODEC_INCLUDE_DIRS libavcodec/avcodec.h)
2013-11-05 04:24:24 +00:00
find_library (AVCODEC_LIBRARIES NAMES avcodec)
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (
2018-03-08 16:26:50 +00:00
AVCODEC DEFAULT_MSG AVCODEC_LIBRARIES AVCODEC_INCLUDE_DIRS)
2013-11-05 04:24:24 +00:00
2018-03-08 16:26:50 +00:00
mark_as_advanced (AVCODEC_LIBRARIES AVCODEC_INCLUDE_DIRS)