summaryrefslogtreecommitdiffstats
path: root/kresources/egroupware/CMakeLists.txt
blob: e7e3d0348a17a183f5d0551ea7fdca43a8c46627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}/kaddressbook/common
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/kaddressbook/common
  ${CMAKE_SOURCE_DIR}/libtdepim
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### headers ###################################

install( FILES
    kabc_resourcexmlrpc.h kcal_resourcexmlrpc.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/tde/kabc )


##### other data ################################

install( FILES kabc_xmlrpc.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
install( FILES kcal_xmlrpc.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
install( FILES knotes_xmlrpc.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes )


##### egwcommon (static) ########################

tde_add_library( egwcommon STATIC_PIC AUTOMOC
  SOURCES
    xmlrpciface.cpp synchronizer.cpp debugdialog.cpp
)


##### kabc_xmlrpc (shared) ######################

tde_add_library( kabc_xmlrpc SHARED AUTOMOC
  SOURCES
    kabc_resourcexmlrpc.cpp kabc_resourcexmlrpcconfig.cpp
    kabc_egroupwareprefs.kcfgc
  VERSION 1.0.0
  LINK egwcommon-static kabcommon-static tdepim-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


##### kcal_xmlrpc (shared) ######################

tde_add_library( kcal_xmlrpc SHARED AUTOMOC
  SOURCES
    kcal_resourcexmlrpc.cpp kcal_resourcexmlrpcconfig.cpp todostatemapper.cpp
    kcal_egroupwareprefs.kcfgc
  VERSION 1.0.0
  LINK egwcommon-static tdepim-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


##### knotes_xmlrpc (shared) ####################

tde_add_library( knotes_xmlrpc SHARED AUTOMOC
  SOURCES
    knotes_resourcexmlrpc.cpp knotes_resourcexmlrpcconfig.cpp
    knotes_egroupwareprefs.kcfgc
  VERSION 1.0.0
  LINK egwcommon-static knotes-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


##### kabc_xmlrpc (module) ######################

tde_add_kpart( kabc_xmlrpc AUTOMOC
  SOURCES kabc_resourcexmlrpcplugin.cpp
  LINK kabc_xmlrpc-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcal_xmlrpc (module) ######################

tde_add_kpart( kcal_xmlrpc AUTOMOC
  SOURCES kcal_resourcexmlrpcplugin.cpp
  LINK kcal_xmlrpc-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### knotes_xmlrpc (module) ####################

tde_add_kpart( knotes_xmlrpc AUTOMOC
  SOURCES knotes_resourcexmlrpcplugin.cpp
  LINK knotes_xmlrpc-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)