add more spacing
[personal-kdebase.git] / runtime / phonon / CMakeLists.txt
blob730ff90b32da80740464c8d63154debc9eb7cc23
1 # If you want to build KDE without any multimedia support
2 # define the cmake variable KDE4_DISABLE_MULTIMEDIA, i.e,
3 # % cmake -DKDE4_DISABLE_MULTIMEDIA=ON
6 include(UsePkgConfig)
7 OPTION(KDE4_DISABLE_MULTIMEDIA "Disable multimedia support (default: off)" OFF)
9 if(KDE4_DISABLE_MULTIMEDIA)
10    message(STATUS "NOTICE: Multimedia support DISABLED (KDE4_DISABLE_MULTIMEDIA == ON)")
11 else(KDE4_DISABLE_MULTIMEDIA)
12    set(PHONON_MIN_VERSION "4.2.96")
13    macro_ensure_version("${PHONON_MIN_VERSION}" "${PHONON_VERSION}" _phonon_version_ok)
14    macro_log_feature(_phonon_version_ok "Phonon" "Phonon library" "svn.kde.org/home/kde/trunk/kdesupport/phonon" TRUE "${PHONON_MIN_VERSION}")
16    FIND_PACKAGE(Alsa)
17    ALSA_CONFIGURE_FILE(${CMAKE_CURRENT_BINARY_DIR}/config-alsa.h)
19    if(NOT ALSA_FOUND)
20       set(ALSA_INCLUDES "")
21       set(ASOUND_LIBRARY "")
22    endif(NOT ALSA_FOUND)
24    add_subdirectory(kded-module)
25    add_subdirectory(platform_kde)
26    add_subdirectory(tests)
27    add_subdirectory(kcm)
28 endif(KDE4_DISABLE_MULTIMEDIA)