File: FindWEBM.cmake

package info (click to toggle)
kodi-inputstream-adaptive 2.6.14%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,036 kB
  • sloc: cpp: 53,019; ansic: 492; makefile: 10
file content (28 lines) | stat: -rw-r--r-- 807 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
24
25
26
27
28
# - Try to find webm
# Once done this will define
#
# WEBM_FOUND - system has libwebm
# WEBM_INCLUDE_DIRS - the libwebm include directory
# WEBM_LIBRARIES - The libwebm libraries

if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_WEBM libwebm QUIET)
endif()

find_path(WEBM_INCLUDE_DIR webm/webm_parser.h PATHS ${PC_WEBM_INCLUDEDIR})
find_library(WEBM_LIBRARY webm libwebm PATHS ${PC_WEBM_LIBDIR})

set(WEBM_VERSION ${PC_WEBM_VERSION})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WEBM
                                  REQUIRED_VARS WEBM_INCLUDE_DIR WEBM_LIBRARY
                                  VERSION_VAR WEBM_VERSION)

if(WEBM_FOUND)
  set(WEBM_LIBRARIES ${WEBM_LIBRARY})
  set(WEBM_INCLUDE_DIRS ${WEBM_INCLUDE_DIR})
endif()


mark_as_advanced(WEBM_INCLUDE_DIRS WEBM_LIBRARIES)