Show invite menu in wlm chat window immediately
[kdenetwork.git] / CMakeLists.txt
blob812268100ca41d20916105314a9d364cd6b690cb
1 project(kdenetwork)
3 set(INSIDE_KDENETWORK TRUE)
5 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
7 # search packages used by KDE
8 find_package(KDE4 REQUIRED)
9 include (KDE4Defaults)
10 include (MacroLibrary)
12 include(CheckIncludeFile)
13 include(CheckIncludeFiles)
14 include(CheckSymbolExists)
15 include(CheckFunctionExists)
16 include(CheckLibraryExists)
17 include(CheckPrototypeExists)
18 include(CheckTypeSize)
19 include(MacroBoolTo01)
20 include(MacroOptionalAddSubdirectory)
22 # If definitions like -D_GNU_SOURCE are needed for these checks they
23 # should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
24 # defined outside this file.  Here we include these definitions in
25 # CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
26 # checks below.
27 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
28 if (WIN32)
29    set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
30    set(CMAKE_REQUIRED_INCLUDES  ${KDEWIN32_INCLUDES} )
31 endif (WIN32)
33 find_package(KdepimLibs REQUIRED)
34 # find_package(X11VidMode) not used at this time
35 find_package(JPEG)
36 find_package(X11VidMode)
37 find_package(LibVNCServer)
39 macro_optional_find_package(LibVNCServer)
40 macro_log_feature(LIBVNCSERVER_FOUND "libvncserver" "VNC Server library" "http://libvncserver.sourceforge.net/" FALSE "0.9" "Needed to build Krfb and VNC support in Krdc")
42 # NX support is not ready for KDE 4.2; disabled (uwolfer)
43 # macro_optional_find_package(LibNXCL)
44 # macro_log_feature(LIBNXCL_FOUND "libnxcl" "NX X compression client library" "http://svn.berlios.de/svnroot/repos/freenx/trunk/freenx-client/nxcl/" FALSE "1.0" "Needed to build Krdc with NX support")
46 macro_optional_find_package(JPEG)
47 macro_log_feature(JPEG_FOUND "libjpeg" "Development library for JPEG formatted image files" "http://www.ijg.org/" FALSE "" "Provides JPEG images in Krdc.")
49 macro_optional_find_package(Soprano)
50 macro_log_feature(Soprano_FOUND "Soprano" "Semantic Desktop Storing" "" FALSE "" "Soprano is needed for Nepomuk")
52 macro_optional_find_package(Nepomuk)
53 macro_log_feature(Nepomuk_FOUND "Nepomuk" "Semantic Desktop" "http://nepomuk.kde.org" FALSE "" "Nepomuk is needed for the integration into KGet")
55 macro_optional_find_package(Sqlite)
56 macro_log_feature(SQLITE_FOUND "SQLite" "SQLite is a Binary-Database" "" FALSE "" "Needed for the SQLite-Backend of the KGet-History and the Kopete-Statistic-Plugin")
59 add_definitions (${QT_DEFINITIONS} ${QT_QTDBUS_DEFINITIONS} ${KDE4_DEFINITIONS})
60 include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${KDEPIMLIBS_INCLUDE_DIR})
62 macro_optional_add_subdirectory(doc)
63 macro_optional_add_subdirectory(kfile-plugins)
64 macro_optional_add_subdirectory(kget)
66 macro_optional_add_subdirectory(kopete)
68 if(Q_WS_X11)
69   macro_optional_add_subdirectory(krdc)
70   macro_optional_add_subdirectory(kppp)
72   if(LIBVNCSERVER_FOUND)
73     macro_optional_add_subdirectory(krfb)
74   endif(LIBVNCSERVER_FOUND)
76 endif(Q_WS_X11)
78 macro_optional_add_subdirectory(kdnssd)
80 if(NOT WIN32)
81   macro_optional_add_subdirectory(filesharing)
82 endif(NOT WIN32)
84 macro_display_feature_log()