add more spacing
[personal-kdebase.git] / runtime / phonon / libkaudiodevicelist / CMakeLists.txt
blobb59614d570288d23761ce3217327b086ed61c9fa
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)
9 if(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")
11 endif(NOT WIN32)
13 include_directories(${ALSA_INCLUDES})
15 set(kaudiodevicelist_LIB_SRCS
16     audiodevice.cpp
17     audiodeviceenumerator.cpp
18     hardwaredatabase.cpp
19    )
21 if(ALSA_FOUND)
22    qt4_add_resources(kaudiodevicelist_LIB_SRCS resources.qrc)
23 endif(ALSA_FOUND)
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})
31 #install(FILES
32 #        kaudiodevicelist_export.h
33 #        audiodevice.h
34 #        audiodeviceenumerator.h
35 #        DESTINATION ${INCLUDE_INSTALL_DIR}/phonon COMPONENT Devel)
37 install(FILES hardwaredatabase DESTINATION ${DATA_INSTALL_DIR}/libphonon)