1 include(MacroEnsureVersion)
2 macro_optional_find_package(NetworkManager)
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")
9 IF("${CMAKE_SYSTEM}" MATCHES "Linux")
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)
19 message(STATUS "Will build networkmanger-0.6")
20 set(HAVE_NETWORKMANAGER TRUE)
21 add_subdirectory(networkmanager-0.6)
24 macro_ensure_version("0.7.0" ${NETWORKMANAGER_VERSION} NM_0_7)
26 message(STATUS "Will build networkmanger-0.7")
27 set(HAVE_NETWORKMANAGER TRUE)
28 add_subdirectory(networkmanager-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.")
34 add_subdirectory(bluez)