mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
kmixer: check for ALSA via module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b442f024d4
commit
4fa2bacb8e
1 changed files with 10 additions and 1 deletions
|
@ -7,6 +7,15 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|||
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
endif()
|
||||
|
||||
find_package(ALSA REQUIRED)
|
||||
set_package_properties(ALSA PROPERTIES
|
||||
DESCRIPTION "Advanced Linux Sound Architecture"
|
||||
URL "https://alsa-project.org/wiki/Main_Page"
|
||||
PURPOSE "KMixer ALSA backend"
|
||||
)
|
||||
|
||||
include_directories(${ALSA_INCLUDE_DIR})
|
||||
|
||||
set(kmixer_sources
|
||||
kmixer.cpp
|
||||
)
|
||||
|
@ -15,7 +24,7 @@ add_executable(kmixer ${kmixer_sources})
|
|||
target_link_libraries(kmixer
|
||||
${KDE4_KDEUI_LIBS}
|
||||
${KDE4_KFILE_LIBS}
|
||||
asound
|
||||
${ALSA_LIBRARIES}
|
||||
)
|
||||
|
||||
install(TARGETS kmixer DESTINATION ${KDE4_BIN_INSTALL_DIR})
|
||||
|
|
Loading…
Add table
Reference in a new issue