-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
175 lines (143 loc) · 4.22 KB
/
CMakeLists.txt
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
KDE4_NO_ENABLE_FINAL(incidenceeditor-ng)
if(KDEPIM_MOBILE_UI)
remove_definitions(-DKDEPIM_MOBILE_UI)
endif()
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/calendarsupport
${CMAKE_BINARY_DIR}/calendarsupport
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_BINARY_DIR}/incidenceeditor-ng
${Boost_INCLUDE_DIR}
)
set(incidenceeditors_ng_shared_LIB_SRCS
attachmenteditdialog.cpp
attachmenticonview.cpp
attendeedata.cpp
attendeeline.cpp
attendeeeditor.cpp
alarmpresets.cpp
alarmdialog.cpp
globalsettings.cpp
ktimezonecombobox.cpp
# TODO: Move the next two to akonadi libs when finished
editoritemmanager.cpp
freebusyurldialog.cpp
# Shared incidence editors code
combinedincidenceeditor.cpp
incidenceeditor.cpp
# Specific editors
incidencealarm.cpp
incidenceattachment.cpp
incidenceattendee.cpp
incidencecategories.cpp
incidencecompletionpriority.cpp
incidencedescription.cpp
incidencewhatwhere.cpp
incidencedatetime.cpp
incidencerecurrence.cpp
incidencesecrecy.cpp
freebusyitem.cpp
freebusyitemmodel.cpp
freebusyganttproxymodel.cpp
freeperiodmodel.cpp
conflictresolver.cpp
schedulingdialog.cpp
groupwareuidelegate.cpp
incidencedefaults.cpp
editorconfig.cpp
korganizereditorconfig.cpp
autochecktreewidget.cpp
categoryeditdialog.cpp
categoryselectdialog.cpp
categorydialog.cpp
)
kde4_add_kcfg_files(incidenceeditors_ng_shared_LIB_SRCS globalsettings_base.kcfgc)
### Build the desktop version
set(incidenceeditors_ng_desktop_LIB_SRCS
${incidenceeditors_ng_shared_LIB_SRCS}
templatemanagementdialog.cpp
incidencedialogfactory.cpp
incidencedialog.cpp
visualfreebusywidget.cpp
)
kde4_add_ui_files(incidenceeditors_ng_desktop_LIB_SRCS
categoryeditdialog_base.ui
categoryselectdialog_base.ui
categorydialog_base.ui
template_management_dialog_base.ui
dialogdesktop.ui
alarmdialog.ui
attachmenteditdialog.ui
schedulingdialog.ui
)
kde4_add_library(incidenceeditorsng ${LIBRARY_TYPE} ${incidenceeditors_ng_desktop_LIB_SRCS})
target_link_libraries(incidenceeditorsng
${KDEPIMLIBS_AKONADI_CALENDAR_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${KDE4_KDEUI_LIBS}
${KDEPIMLIBS_KCALCORE_LIBS}
${KDEPIMLIBS_KCALUTILS_LIBS}
kdepim
kdepimdbusinterfaces # For UriHandler
calendarsupport # For KCalPrefs
kdgantt2 # For FreeBusy Editor
)
set_target_properties(incidenceeditorsng
PROPERTIES VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(TARGETS incidenceeditorsng ${INSTALL_TARGETS_DEFAULT_ARGS})
### Build the mobile version if needed
#if(KDEPIM_MOBILE_UI)
set(incidenceeditors_ng_mobile_LIB_SRCS
${incidenceeditors_ng_shared_LIB_SRCS}
)
kde4_add_ui_files(incidenceeditors_ng_mobile_LIB_SRCS
categoryeditdialog_base.ui
categoryselectdialog_base.ui
categorydialog_base.ui
editoralarms_base.ui
dialogdesktop.ui
dialogmobile.ui
dialogmoremobile.ui
attachmenteditdialog.ui
alarmdialog.ui
mobileschedulingdialog.ui
)
kde4_add_library(incidenceeditorsngmobile ${LIBRARY_TYPE} ${incidenceeditors_ng_mobile_LIB_SRCS})
target_link_libraries(incidenceeditorsngmobile
${KDEPIMLIBS_AKONADI_CALENDAR_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${KDE4_KDEUI_LIBS}
kdepim # For KPIM::K{Date|Time}Edit
calendarsupport # For KCalPrefs
kdepimdbusinterfaces # For UriHandler
kdgantt2
${KDEPIMLIBS_KCALUTILS_LIBS}
${KDEPIMLIBS_KCALCORE_LIBS}
)
set_target_properties(incidenceeditorsngmobile PROPERTIES
COMPILE_FLAGS -DKDEPIM_MOBILE_UI
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
install(TARGETS incidenceeditorsngmobile ${INSTALL_TARGETS_DEFAULT_ARGS})
#endif(KDEPIM_MOBILE_UI)
### Build the test app TODO: Make optional
set(testincidenceeditor_SRCS main.cpp)
kde4_add_executable(kincidenceeditor ${testincidenceeditor_SRCS})
target_link_libraries(kincidenceeditor
${KDEPIMLIBS_AKONADI_CALENDAR_LIBS}
${KDE4_KDEUI_LIBS}
${KDEPIMLIBS_AKONADI_LIBS}
${KDEPIMLIBS_KCALCORE_LIBS}
${KDEPIMLIBS_KCALUTILS_LIBS}
incidenceeditorsng
calendarsupport
kdepimdbusinterfaces
)
install(TARGETS kincidenceeditor ${INSTALL_TARGETS_DEFAULT_ARGS})
add_subdirectory(tests)