add more spacing
[personal-kdebase.git] / runtime / phonon / kded-module / CMakeLists.txt
blob1b66f2a1f330f30ae6a1aae4472e882e62093693
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)
15 if(PULSEAUDIO_FOUND)
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})
24 set(kded_phonon_SRCS
25    phononserver.cpp
26    audiodevice.cpp
27    audiodeviceaccess.cpp
28    hardwaredatabase.cpp
29    )
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)