summaryrefslogtreecommitdiffstats
path: root/project/cmake/modules/FindAlsa.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2016-03-08 21:02:53 +0100
committermanuel <manuel@mausz.at>2016-03-08 21:02:53 +0100
commit9fc8b732737f139d3e466510d75668ab45578960 (patch)
tree76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindAlsa.cmake
parentb75e2659df11c23aa921d2eed83c23adc282ed27 (diff)
downloadkodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz
kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2
kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindAlsa.cmake')
-rw-r--r--project/cmake/modules/FindAlsa.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/project/cmake/modules/FindAlsa.cmake b/project/cmake/modules/FindAlsa.cmake
new file mode 100644
index 0000000..b15a0cf
--- /dev/null
+++ b/project/cmake/modules/FindAlsa.cmake
@@ -0,0 +1,20 @@
1# - Try to find ALSA
2# Once done this will define
3#
4# ALSA_FOUND - system has libALSA
5# ALSA_INCLUDE_DIRS - the libALSA include directory
6# ALSA_LIBRARIES - The libALSA libraries
7
8if(PKG_CONFIG_FOUND)
9 pkg_check_modules (ALSA alsa)
10else()
11 find_path(ALSA_INCLUDE_DIRS asoundlib.h PATH_SUFFIXES alsa)
12 find_library(ALSA_LIBRARIES asound)
13endif()
14
15include(FindPackageHandleStandardArgs)
16find_package_handle_standard_args(Alsa DEFAULT_MSG ALSA_INCLUDE_DIRS ALSA_LIBRARIES)
17
18set(ALSA_INCLUDE_DIRS "") # Dont want these added as 'timer.h' is a dangerous file
19mark_as_advanced(ALSA_INCLUDE_DIRS ALSA_LIBRARIES)
20list(APPEND ALSA_DEFINITIONS -DHAVE_ALSA=1 -DUSE_ALSA=1)