don't crash
[decibel-kopete-hacking.git] / CMakeLists.txt
blobd6f97b04d570b1420cacb6b466843f71e278b19d
1 # This project is decibel-kde - extras to Decibel that provide integration into
2 # the KDE4 environment.
3 project (decibel-kde)
5 # Extra FindFOO.cmake files are in this directory.
6 set (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
8 # Depend on KDE4
9 find_package (KDE4 REQUIRED)
10 # Set KDE default variables
11 include (KDE4Defaults)
12 # Include useful KDE macros.
13 include (MacroLibrary)
14 include (MacroOptionalAddSubdirectory)
15 include (MacroOptionalDependPackage)
17 # telepathy-qt and tapioca-qt are required because we need them to build
18 # anything related to Decibel.
19 find_package (TelepathyQt REQUIRED)
20 find_package (TapiocaQt REQUIRED)
22 # Add KDE4 and Qt compiler definitions.
23 add_definitions (${QT_DEFINITIONS}
24                  ${KDE4_DEFINITIONS}
27 # Set the standard include directories, including the KDE4 include directory
28 include_directories (${CMAKE_SOURCE_DIR}
29                      ${CMAKE_BINARY_DIR}
30                      ${QT_QTCORE_INCLUDE_DIR}
31                      ${QT_QTGUI_INCLUDE_DIR}
32                      ${QT_QTXML_INCLUDE_DIR}
33                      ${TELEPATHY_QT_INCLUDE_DIR}
34                      ${TAPIOCA_QT_INCLUDE_DIR}
35                      ${KDE4_INCLUDES}
38 # COMPONENT_SEARCH_DIR is Decibel specific. Set it here for now, although it
39 # should probably be set in FindDecibel.cmake once that exists.
40 set (COMPONENT_SEARCH_DIR
41      "${DATA_INSTALL_DIR}/Decibel/components"
42      CACHE PATH "The subdirectory relative to the install prefix where Decibel will look for its components (default is ${DATA_INSTALL_DIR}/Decibel/components)."
43      FORCE
46 # Add the subdirectories we will build.
47 add_subdirectory (lib)
48 add_subdirectory (plugins)
49 add_subdirectory (addons)