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 # set(HAVE_CURRENT_ALSA TRUE)
6 # endif(ALSA_VERSION_STR MATCHES "^1\\.(0\\.(1[4-9]|[2-9][0-9]+)|[1-9][0-9]*\\.)")
7 #endif(ALSA_VERSION_STR AND NOT WIN32)
8 #if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
9 # macro_log_feature(HAVE_CURRENT_ALSA "ALSA" "current alsa-lib is needed for dmix and virtual device listing" "http://www.alsa-project.org/" TRUE "1.0.14a")
10 #endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
12 macro_optional_find_package(PulseAudio)
13 macro_log_feature(PULSEAUDIO_FOUND "PulseAudio" "libpulse is needed to allow audio playback via the PulseAudio soundserver when it is running" "http://www.pulseaudio.org/" FALSE)
16 add_definitions(-DHAVE_PULSEAUDIO)
17 else(PULSEAUDIO_FOUND)
18 set(PULSEAUDIO_INCLUDE_DIR "")
19 set(PULSEAUDIO_LIBRARY "")
20 endif(PULSEAUDIO_FOUND)
22 include_directories(${ALSA_INCLUDES} ${PULSEAUDIO_INCLUDE_DIR})
31 kde4_add_plugin(kded_phononserver ${kded_phonon_SRCS})
32 target_link_libraries(kded_phononserver ${KDE4_KDEUI_LIBS} ${KDE4_PHONON_LIBS} ${KDE4_SOLID_LIBS} ${ASOUND_LIBRARY} ${PULSEAUDIO_LIBRARY})
33 install(TARGETS kded_phononserver DESTINATION ${PLUGIN_INSTALL_DIR})
35 install(FILES phononserver.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
37 install(FILES hardwaredatabase DESTINATION ${DATA_INSTALL_DIR}/libphonon)