1 ALSA_VERSION_STRING(ALSA_VERSION_STR)
2 SET(HAVE_CURRENT_ALSA FALSE)
3 IF(ALSA_VERSION_STR AND NOT WIN32)
4 IF(ALSA_VERSION_STR MATCHES "^1\\.(0\\.(1[4-9]|[2-9][0-9]+)|[1-9][0-9]*\\.)")
5 ADD_DEFINITIONS(-DHAS_LIBASOUND_DEVICE_NAME_HINT)
6 SET(HAVE_CURRENT_ALSA TRUE)
7 ENDIF(ALSA_VERSION_STR MATCHES "^1\\.(0\\.(1[4-9]|[2-9][0-9]+)|[1-9][0-9]*\\.)")
8 ENDIF(ALSA_VERSION_STR AND NOT WIN32)
10 macro_log_feature(HAVE_CURRENT_ALSA "ALSA" "current alsa-lib is needed for dmix and virtual device listing" "http://www.alsa-project.org/" FALSE "1.0.14a")
13 include_directories(${ALSA_INCLUDES})
15 set(kaudiodevicelist_LIB_SRCS
17 audiodeviceenumerator.cpp
22 qt4_add_resources(kaudiodevicelist_LIB_SRCS resources.qrc)
25 kde4_add_library(kaudiodevicelist SHARED ${kaudiodevicelist_LIB_SRCS})
26 target_link_libraries(${KDE4_KAUDIODEVICELIST_LIBS})
28 set_target_properties(kaudiodevicelist PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
30 install(TARGETS kaudiodevicelist ${INSTALL_TARGETS_DEFAULT_ARGS})
32 # kaudiodevicelist_export.h
34 # audiodeviceenumerator.h
35 # DESTINATION ${INCLUDE_INSTALL_DIR}/phonon COMPONENT Devel)
37 install(FILES hardwaredatabase DESTINATION ${DATA_INSTALL_DIR}/libphonon)