File: FindLibAVCodec.cmake

package info (click to toggle)
libsoxr 0.1.3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 840 kB
  • sloc: ansic: 8,011; sh: 284; cpp: 40; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SoX Resampler Library       Copyright (c) 2007-18 robs@users.sourceforge.net
# Licence for this file: LGPL v2.1                  See LICENCE for details.

# - Find AVCODEC
# Find the installation of this package: include-dirs and libraries.
#
#  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.

if (AVCODEC_INCLUDE_DIRS)
  set (AVCODEC_FIND_QUIETLY TRUE)
endif ()

find_path (AVCODEC_INCLUDE_DIRS libavcodec/avcodec.h)

find_library (AVCODEC_LIBRARIES NAMES avcodec)

include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (
  AVCODEC DEFAULT_MSG AVCODEC_LIBRARIES AVCODEC_INCLUDE_DIRS)

mark_as_advanced (AVCODEC_LIBRARIES AVCODEC_INCLUDE_DIRS)