File: FindLibSndFile.cmake

package info (click to toggle)
kodi-audiodecoder-fluidsynth 20.2.1%2Bds1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 552 kB
  • sloc: cpp: 196; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# - Try to find fluidsynth
# Once done this will define
#
# LIBSNDFILE_FOUND - system has libsndfile
# LIBSNDFILE_INCLUDE_DIRS - the libsndfile include directory
# LIBSNDFILE_LIBRARIES - The libsndfile libraries

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_LIBSNDFILE sndfile QUIET)
endif()

find_path(LIBSNDFILE_INCLUDE_DIRS sndfile.h
                                  PATHS ${PC_LIBSNDFILE_INCLUDEDIR})
find_library(LIBSNDFILE_LIBRARIES sndfile
                                  PATHS ${PC_LIBSNDFILE_LIBDIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibSndFile REQUIRED_VARS LIBSNDFILE_INCLUDE_DIRS LIBSNDFILE_LIBRARIES)

mark_as_advanced(LIBSNDFILE_INCLUDE_DIRS LIBSNDFILE_LIBRARIES)