2 add_subdirectory( tests )
4 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5850)
5 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/interfaces
6 ${CMAKE_SOURCE_DIR}/libkholidays
7 ${CMAKE_SOURCE_DIR}/mimelib
8 ${CMAKE_SOURCE_DIR}/korganizer/printing
9 ${CMAKE_SOURCE_DIR}/kdgantt1
10 ${CMAKE_BINARY_DIR}/libkdepim
11 ${QT_INCLUDES} ${ZLIB_INCLUDE_DIR} )
13 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
15 add_subdirectory( printing )
16 add_subdirectory( korgac )
17 add_subdirectory( pixmaps )
18 add_subdirectory( sounds )
19 add_subdirectory( plugins )
20 add_subdirectory( interfaces )
22 set( PERL ${PERL_EXECUTABLE} )
23 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ical2vcal.cmake ${CMAKE_CURRENT_BINARY_DIR}/ical2vcal @ONLY)
26 ########### next target ###############
34 kde4_add_app_icon(korganizer_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/pixmaps/hi*-apps-korganizer.png")
36 kde4_add_executable(korganizer ${korganizer_SRCS})
38 target_link_libraries(korganizer ${KDE4_KDECORE_LIBS} korganizerprivate)
40 install(TARGETS korganizer DESTINATION ${BIN_INSTALL_DIR} )
43 ########### next target ############### # FIXME to be removed! (only needed for testing before copying everything to korganizer)
52 kde4_add_executable(theme_bin ${theme_bin_SRCS})
54 set_target_properties(theme_bin PROPERTIES OUTPUT_NAME thememain)
56 target_link_libraries(theme_bin ${KDE4_KDECORE_LIBS} korganizerprivate)
58 install(TARGETS theme_bin DESTINATION ${BIN_INSTALL_DIR} )
61 ########### next target ###############
63 set(kcm_korganizer_PART_SRCS koprefsdialog.cpp )
66 kde4_add_plugin(kcm_korganizer ${kcm_korganizer_PART_SRCS})
69 target_link_libraries(kcm_korganizer ${KDE4_KDECORE_LIBS} korganizerprivate kdepim kholidays)
71 kde4_add_kcfg_files(kcm_korganizer_SRCS koprefs_base.kcfgc )
73 install(TARGETS kcm_korganizer DESTINATION ${PLUGIN_INSTALL_DIR})
76 ########### next target ###############
78 set(korganizerpart_PART_SRCS korganizer_part.cpp )
81 kde4_add_plugin(korganizerpart ${korganizerpart_PART_SRCS})
85 target_link_libraries(korganizerpart ${KDE4_KDECORE_LIBS} korganizerprivate )
87 install(TARGETS korganizerpart DESTINATION ${PLUGIN_INSTALL_DIR})
90 ########### next target ###############
92 set(korganizer_eventviewer_LIB_SRCS koeventviewer.cpp urihandler.cpp koeventviewerdialog.cpp )
95 qt4_add_dbus_interfaces(korganizer_eventviewer_LIB_SRCS org.kde.korganizer.Korganizer.xml)
96 qt4_add_dbus_interfaces(korganizer_eventviewer_LIB_SRCS ${CMAKE_BINARY_DIR}/kmail/org.kde.kmail.kmail.xml)
97 qt4_add_dbus_interfaces(korganizer_eventviewer_LIB_SRCS ${CMAKE_SOURCE_DIR}/knode/org.kde.knode.xml)
98 qt4_add_dbus_interfaces(korganizer_eventviewer_LIB_SRCS ${CMAKE_SOURCE_DIR}/kaddressbook/org.kde.KAddressbook.Core.xml)
100 kde4_add_library(korganizer_eventviewer SHARED ${korganizer_eventviewer_LIB_SRCS})
101 add_dependencies(korganizer_eventviewer kmail_xml)
103 target_link_libraries(korganizer_eventviewer ${KDE4_KPARTS_LIBS} ${KDE4_KCAL_LIBS})
105 set_target_properties(korganizer_eventviewer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
106 install(TARGETS korganizer_eventviewer DESTINATION ${LIB_INSTALL_DIR})
109 ########### next target ###############
111 set(korganizer_calendar_LIB_SRCS stdcalendar.cpp )
114 kde4_add_library(korganizer_calendar SHARED ${korganizer_calendar_LIB_SRCS})
116 target_link_libraries(korganizer_calendar ${KDE4_KPARTS_LIBS} ${KDE4_KCAL_LIBS} kdepim)
118 set_target_properties(korganizer_calendar PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
119 install(TARGETS korganizer_calendar DESTINATION ${LIB_INSTALL_DIR})
122 ########### next target ###############
124 set(korganizerprivate_LIB_SRCS
130 kodecorationlabel.cpp
134 timescaleconfigdialog.cpp
142 datenavigatorcontainer.cpp
144 views/oldmonthview/komonthview.cpp
145 views/monthview/monthview.cpp
146 views/monthview/monthitem.cpp
147 views/monthview/monthscene.cpp
148 views/todoview/kotodomodel.cpp
149 views/todoview/kotododelegates.cpp
150 views/todoview/kotodoviewsortfilterproxymodel.cpp
151 views/todoview/kotodoviewview.cpp
152 views/todoview/kotodoview.cpp
153 views/todoview/kotodoviewquicksearch.cpp
154 views/todoview/kotodoviewquickaddline.cpp
155 views/todoview/kcheckcombobox.cpp
164 koincidenceeditor.cpp
171 koeditorgeneralevent.cpp
172 koeditorgeneraltodo.cpp
173 koeditorgeneraljournal.cpp
176 koeditorrecurrence.cpp
177 koeditorattachments.cpp
200 korganizerifaceimpl.cpp
202 freebusyurldialog.cpp
204 koidentitymanager.cpp
210 templatemanagementdialog.cpp )
213 kde4_add_kcfg_files(korganizerprivate_LIB_SRCS koprefs_base.kcfgc )
215 kde4_add_ui_files(korganizerprivate_LIB_SRCS filteredit_base.ui koeditoralarms_base.ui publishdialog_base.ui template_management_dialog_base.ui kogroupwareprefspage.ui searchdialog_base.ui timescaleedit_base.ui)
217 qt4_add_resources(korganizerprivate_LIB_SRCS agendaitem_pixmaps/agendaitemtheme.qrc )
219 qt4_add_dbus_adaptor(korganizerprivate_LIB_SRCS org.kde.korganizer.Korganizer.xml korganizerifaceimpl.h KOrganizerIfaceImpl )
220 qt4_add_dbus_adaptor(korganizerprivate_LIB_SRCS org.kde.Korganizer.Calendar.xml actionmanager.h ActionManager )
221 qt4_add_dbus_interfaces(korganizerprivate_LIB_SRCS org.kde.korganizer.Korganizer.xml )
222 qt4_add_dbus_interfaces(korganizerprivate_LIB_SRCS ${CMAKE_BINARY_DIR}/kmail/org.kde.kmail.kmail.xml)
224 kde4_add_library(korganizerprivate SHARED ${korganizerprivate_LIB_SRCS})
226 add_dependencies(korganizerprivate kmail)
228 target_link_libraries(korganizerprivate ${KDE4_KNEWSTUFF2_LIBS} ${KDE4_KABC_LIBRARY} ${KDE4_KUTILS_LIBRARY} ${KDE4_KCAL_LIBRARY} ${KDE4_KPIMIDENTITIES_LIBRARY} ${KDE4_KMIME_LIBRARY}
229 kdepim korganizer_eventviewer korganizer_calendar kocorehelper
230 korg_stdprinting kholidays korganizer_interfaces )
232 set_target_properties(korganizerprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
234 install(TARGETS korganizerprivate DESTINATION ${LIB_INSTALL_DIR})
237 ########### install files ###############
239 install( FILES korganizer.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
240 install( FILES korganizer.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
241 install( FILES korganizer-import.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
242 install( FILES korganizer.kcfg DESTINATION ${KCFG_INSTALL_DIR})
243 install( FILES korganizer_part.rc DESTINATION ${DATA_INSTALL_DIR}/korganizer)
244 install( FILES dbuscalendar.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
245 install( FILES tips DESTINATION ${DATA_INSTALL_DIR}/korganizer)
246 install( FILES korganizer_configmain.desktop
247 korganizer_configtime.desktop
248 korganizer_configviews.desktop
249 korganizer_configcolorsandfonts.desktop
250 korganizer_configplugins.desktop
251 korganizer_configgroupscheduling.desktop
252 korganizer_configfreebusy.desktop
253 korganizer_configdesignerfields.desktop
254 webcal.protocol DESTINATION ${SERVICES_INSTALL_DIR})
255 install( FILES korganizerui.rc DESTINATION ${DATA_INSTALL_DIR}/korganizer)
256 install( FILES korganizer.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR})
257 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ical2vcal DESTINATION ${BIN_INSTALL_DIR})
259 install( FILES org.kde.Korganizer.Calendar.xml org.kde.korganizer.Korganizer.xml DESTINATION ${KDE4_DBUS_INTERFACES_DIR})