File: FindOgg.cmake

package info (click to toggle)
kodi-audioencoder-flac 19.0.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 480 kB
  • sloc: cpp: 237; xml: 17; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# - Try to find ogg
# Once done this will define
#
# OGG_FOUND - system has libogg
# OGG_INCLUDE_DIRS - the libogg include directory
# OGG_LIBRARIES - The libogg libraries

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_OGG ogg QUIET)
endif()

find_path(OGG_INCLUDE_DIRS ogg/ogg.h
                           PATHS ${PC_OGG_INCLUDEDIR})
find_library(OGG_LIBRARIES ogg
                           PATHS ${PC_OGG_LIBDIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Ogg REQUIRED_VARS OGG_INCLUDE_DIRS OGG_LIBRARIES)

mark_as_advanced(OGG_INCLUDE_DIRS OGG_LIBRARIES)