don't crash
[decibel-kopete-hacking.git] / lib / CMakeLists.txt
blob651dd3104c0b452fbd80dd7f7c7f473047999f9a
1 project(decibel-lib-kde)
3 find_package(KDE4 REQUIRED)
4 include(FindKdepimLibs)
5 include (KDE4Defaults)
6 find_package(Plasma REQUIRED)
7 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
9 SET(QT_DONT_USE_QTGUI "YES")
11 INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR}
12                     ${CMAKE_CURRENT_BINARY_DIR}
13                     ${CMAKE_CURRENT_SOURCE_DIR}
14                     ${KDE4_INCLUDE_DIR}
17 SET(decibel_kde_SRCS
18     # Akonadi attributes.
19     accessattribute.cpp
20     #contactdataattribute.cpp
21     # Decibel data objects
22     #contactaccount.cpp
25 kde4_add_library(decibel_kde SHARED
26                  ${decibel_kde_SRCS}
28 TARGET_LINK_LIBRARIES(decibel_kde
29                       ${QT_LIBRARIES}
30                       akonadi-kde
33 # Install:
34 INSTALL(TARGETS decibel_kde DESTINATION ${LIB_INSTALL_DIR})