mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
cmake: remove now unused Alsa module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e71acad9d5
commit
d55c4757b6
2 changed files with 0 additions and 41 deletions
|
@ -25,7 +25,6 @@ set(cmakeFilesDontInstall
|
|||
# compatible).
|
||||
set(cmakeFiles
|
||||
cmake-modules-styleguide.txt
|
||||
FindAlsa.cmake
|
||||
FindDBusMenuQt.cmake
|
||||
FindDjVuLibre.cmake
|
||||
FindEPub.cmake
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
# Try to find the ALSA, once done this will define:
|
||||
#
|
||||
# ALSA_FOUND - system has ALSA
|
||||
# ALSA_INCLUDES - the ALSA include directory
|
||||
# ALSA_LIBRARIES - the libraries needed to use ALSA
|
||||
#
|
||||
# Copyright (c) 2020 Ivailo Monev <xakepa10@gmail.com>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
if(NOT WIN32)
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(PC_ALSA QUIET alsa)
|
||||
|
||||
set(ALSA_INCLUDES ${PC_ALSA_INCLUDE_DIRS})
|
||||
set(ALSA_LIBRARIES ${PC_ALSA_LIBRARIES})
|
||||
endif()
|
||||
|
||||
set(ALSA_VERSION ${PC_ALSA_VERSION})
|
||||
|
||||
if(NOT ALSA_INCLUDES OR NOT ALSA_LIBRARIES)
|
||||
find_path(ALSA_INCLUDES
|
||||
NAMES alsa/version.h
|
||||
HINTS $ENV{ALSADIR}/include
|
||||
)
|
||||
|
||||
find_library(ALSA_LIBRARIES
|
||||
NAMES asound2 asound
|
||||
HINTS $ENV{ALSADIR}/lib
|
||||
)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Alsa
|
||||
VERSION_VAR ALSA_VERSION
|
||||
REQUIRED_VARS ALSA_LIBRARIES ALSA_INCLUDES
|
||||
)
|
||||
|
||||
mark_as_advanced(ALSA_INCLUDES ALSA_LIBRARIES)
|
Loading…
Add table
Reference in a new issue