not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / solid / CMakeLists.txt
blob52790afcd10a8d9916999ea9b79dbd809da7262f
1 include(MacroEnsureVersion)
2 macro_optional_find_package(NetworkManager)
3     
4 macro_optional_find_package(BlueZ)
5 macro_log_feature(BLUEZ_FOUND "BlueZ" "BlueZ is the Linux Bluetooth protocol stack" "http://www.bluez.org" FALSE "" "For Bluetooth support in KDE")
7 add_subdirectory(kcm)
9 IF("${CMAKE_SYSTEM}" MATCHES "Linux")
10   add_subdirectory(hal)
11   add_subdirectory(networking)
12   add_subdirectory(solidshell)
13 ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
15 set(HAVE_NETWORKMANAGER FALSE)
16 if(NETWORKMANAGER_FOUND)
17   macro_ensure_version_range("0.6.5" ${NETWORKMANAGER_VERSION} "0.7.0" NM_0_6)
18   if (NM_0_6)
19     message(STATUS "Will build networkmanger-0.6")
20     set(HAVE_NETWORKMANAGER TRUE)
21     add_subdirectory(networkmanager-0.6)
22   endif (NM_0_6)
24   macro_ensure_version("0.7.0" ${NETWORKMANAGER_VERSION} NM_0_7)
25   if (NM_0_7)
26     message(STATUS "Will build networkmanger-0.7")
27     set(HAVE_NETWORKMANAGER TRUE)
28     add_subdirectory(networkmanager-0.7)
29   endif (NM_0_7)
30 endif (NETWORKMANAGER_FOUND)
31 macro_log_feature(HAVE_NETWORKMANAGER "NetworkManager" "A daemon for user controlled networking" "http://www.gnome.org/projects/NetworkManager" FALSE "0.6.5" "Needed for building Network Management support in Solid.")
33 if(BLUEZ_FOUND)
34   add_subdirectory(bluez)
35 endif(BLUEZ_FOUND)