summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 00:29:04 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 00:29:04 +0000
commitf5b07a4a12d57d28dee8662d296dd400d26ba7fe (patch)
tree24b4c61a0576f1c5d3571cc8d6c81262e6171227
parent6bab61d816e8321b2d66a7183af04269a832ea81 (diff)
downloadtdepim-f5b07a4a12d57d28dee8662d296dd400d26ba7fe.tar.gz
tdepim-f5b07a4a12d57d28dee8662d296dd400d26ba7fe.zip
[kdepim] initial cmake support for: knotes, kode, korganizer, kresources, plugins, wizards
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225440 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt25
-rw-r--r--kaddressbook/CMakeLists.txt1
-rw-r--r--kmail/CMakeLists.txt7
-rw-r--r--knotes/CMakeLists.txt85
-rw-r--r--knotes/icons/CMakeLists.txt12
-rw-r--r--knotes/pics/CMakeLists.txt12
-rw-r--r--knotes/pushpin.xpm2
-rw-r--r--kode/CMakeLists.txt43
-rw-r--r--kode/kxml_compiler/CMakeLists.txt30
-rw-r--r--kresources/CMakeLists.txt35
-rw-r--r--kresources/birthdays/CMakeLists.txt45
-rw-r--r--kresources/caldav/CMakeLists.txt53
-rw-r--r--kresources/caldav/ConfigureChecks.cmake32
-rw-r--r--kresources/caldav/config.cpp2
-rw-r--r--kresources/caldav/configwidgets.cpp2
-rw-r--r--kresources/caldav/job.h2
-rw-r--r--kresources/caldav/resource.cpp2
-rw-r--r--kresources/carddav/CMakeLists.txt54
-rw-r--r--kresources/carddav/ConfigureChecks.cmake30
-rw-r--r--kresources/carddav/config.cpp2
-rw-r--r--kresources/carddav/configwidgets.cpp2
-rw-r--r--kresources/carddav/job.h2
-rw-r--r--kresources/carddav/resource.cpp2
-rw-r--r--kresources/egroupware/CMakeLists.txt108
-rw-r--r--kresources/exchange/CMakeLists.txt39
-rw-r--r--kresources/featureplan/CMakeLists.txt73
-rw-r--r--kresources/groupdav/CMakeLists.txt77
-rw-r--r--kresources/groupwise/CMakeLists.txt75
-rw-r--r--kresources/groupwise/kioslave/CMakeLists.txt38
-rw-r--r--kresources/groupwise/soap/CMakeLists.txt37
-rw-r--r--kresources/groupwise/soap/groupwiseserver.cpp6
-rw-r--r--kresources/kolab/CMakeLists.txt18
-rw-r--r--kresources/kolab/kabc/CMakeLists.txt53
-rw-r--r--kresources/kolab/kcal/CMakeLists.txt56
-rw-r--r--kresources/kolab/knotes/CMakeLists.txt54
-rw-r--r--kresources/kolab/shared/CMakeLists.txt29
-rw-r--r--kresources/lib/CMakeLists.txt51
-rw-r--r--kresources/lib/webdavhandler.cpp2
-rw-r--r--kresources/newexchange/CMakeLists.txt79
-rw-r--r--kresources/remote/CMakeLists.txt55
-rw-r--r--kresources/scalix/CMakeLists.txt17
-rw-r--r--kresources/scalix/kabc/CMakeLists.txt52
-rw-r--r--kresources/scalix/kcal/CMakeLists.txt52
-rw-r--r--kresources/scalix/kioslave/CMakeLists.txt36
-rw-r--r--kresources/scalix/knotes/CMakeLists.txt55
-rw-r--r--kresources/scalix/scalixadmin/CMakeLists.txt33
-rw-r--r--kresources/scalix/shared/CMakeLists.txt30
-rw-r--r--kresources/slox/CMakeLists.txt80
-rw-r--r--plugins/CMakeLists.txt12
-rw-r--r--plugins/kmail/CMakeLists.txt12
-rw-r--r--plugins/kmail/bodypartformatter/CMakeLists.txt80
-rw-r--r--wizards/CMakeLists.txt240
-rw-r--r--wizards/overviewpage.cpp22
-rw-r--r--wizards/wizards-config.h.cmake4
54 files changed, 2047 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c1c568497..8a58b4f08 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,6 +48,17 @@ option( WITH_SASL "Enable cyrus-sasl support" OFF )
option( WITH_NEWDISTRLISTS "Enable the new distribution lists" ON )
option( WITH_GNOKII "Enable gnokii support" OFF )
option( WITH_EXCHANGE "Enable Microsoft Exchange 2000 support" OFF )
+option( WITH_EGROUPWARE "Enable egroupware support" OFF )
+option( WITH_KOLAB "Enable kolab support" OFF )
+option( WITH_SLOX "Enable slox support" OFF )
+option( WITH_GROUPWISE "Enable groupwise support" OFF )
+option( WITH_FEATUREPLAN "Enable featureplan support" OFF )
+option( WITH_GROUPDAV "Enable groupdav support" OFF )
+option( WITH_BIRTHDAYS "Enable birthdays support" OFF )
+option( WITH_NEWEXCHANGE "Enable newexchange support" OFF )
+option( WITH_SCALIX "Enable scalix support" OFF )
+option( WITH_CALDAV "Enable caldav support" OFF )
+option( WITH_CARDDAV "Enable carddav support" OFF )
if( NOT WITH_ARTS )
set( WITHOUT_ARTS 1 )
@@ -81,6 +92,11 @@ option( BUILD_KORN "Build korn" ${BUILD_ALL} )
option( BUILD_KGANTT "Build kgantt" ${BUILD_ALL} )
option( BUILD_LIBKHOLIDAYS "Build libkholidays" ${BUILD_ALL} )
option( BUILD_KORGANIZER "Build korganizer" ${BUILD_ALL} )
+option( BUILD_PLUGINS "Build plugins" ${BUILD_ALL} )
+option( BUILD_KNOTES "Build knotes" ${BUILD_ALL} )
+option( BUILD_KODE "Build kode" ${BUILD_ALL} )
+option( BUILD_KRESOURCES "Build kresources" ${BUILD_ALL} )
+option( BUILD_WIZARDS "Build wizards" ${BUILD_ALL} )
##### configure checks ##########################
@@ -106,6 +122,10 @@ if( BUILD_LIBKCAL OR BUILD_LIBKDEPIM OR BUILD_LIBKPIMIDENTITIES OR BUILD_KIOSLAV
add_subdirectory( libemailfunctions )
endif()
+if( BUILD_KADDRESSBOOK OR (BUILD_KRESOURCES AND (WITH_EGROUPWARE OR WITH_BIRTHDAYS)) )
+ add_subdirectory( kaddressbook/common )
+endif()
+
##### kdepim directories ########################
@@ -131,6 +151,11 @@ tde_conditional_add_subdirectory( BUILD_KGANTT kgantt )
tde_conditional_add_subdirectory( BUILD_LIBKHOLIDAYS libkholidays )
tde_conditional_add_subdirectory( BUILD_KORGANIZER kdgantt )
tde_conditional_add_subdirectory( BUILD_KORGANIZER korganizer )
+tde_conditional_add_subdirectory( BUILD_PLUGINS plugins )
+tde_conditional_add_subdirectory( BUILD_KNOTES knotes )
+tde_conditional_add_subdirectory( BUILD_KODE kode )
+tde_conditional_add_subdirectory( BUILD_KRESOURCES kresources )
+tde_conditional_add_subdirectory( BUILD_WIZARDS wizards )
##### write configure files #####################
diff --git a/kaddressbook/CMakeLists.txt b/kaddressbook/CMakeLists.txt
index 20788aa51..550eebd65 100644
--- a/kaddressbook/CMakeLists.txt
+++ b/kaddressbook/CMakeLists.txt
@@ -17,7 +17,6 @@ tde_import( libkcal )
tde_import( libkdepim )
add_subdirectory( interfaces )
-add_subdirectory( common )
add_subdirectory( printing )
add_subdirectory( editors )
add_subdirectory( views )
diff --git a/kmail/CMakeLists.txt b/kmail/CMakeLists.txt
index 9e1e9f36e..a9a198a6a 100644
--- a/kmail/CMakeLists.txt
+++ b/kmail/CMakeLists.txt
@@ -9,6 +9,8 @@
#
#################################################
+project( kmail )
+
include( ConfigureChecks.cmake )
tde_import( libkdenetwork )
@@ -223,3 +225,8 @@ tde_add_kpart( libkmail_bodypartformatter_application_octetstream
SOURCES app_octetstream.cpp
DESTINATION ${PLUGIN_INSTALL_DIR}
)
+
+
+##### install import cmake modules ###############
+
+tde_install_export( )
diff --git a/knotes/CMakeLists.txt b/knotes/CMakeLists.txt
new file mode 100644
index 000000000..1e37d7ed7
--- /dev/null
+++ b/knotes/CMakeLists.txt
@@ -0,0 +1,85 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( knotes )
+
+tde_import( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+tde_import( libkdepim )
+
+add_subdirectory( pics )
+add_subdirectory( icons )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES KNotesIface.h KNotesAppIface.h DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### other data ################################
+
+install( FILES knotes.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES knoteconfig.kcfg knotesglobalconfig.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+install( FILES knotesappui.rc knotesui.rc DESTINATION ${DATA_INSTALL_DIR}/knotes )
+install( FILES local.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes )
+install( FILES knotes_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources )
+
+
+##### knotes (executable) #######################
+
+tde_add_executable( knotes AUTOMOC
+ SOURCES
+ main.cpp knotesapp.cpp KNotesAppIface.skel
+ LINK knotes-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### knotes_local (module) #####################
+
+tde_add_kpart( knotes_local AUTOMOC
+ SOURCES
+ resourcelocal_plugin.cpp
+ LINK knotes-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### knotes (shared) ###########################
+
+tde_add_library( knotes SHARED AUTOMOC
+ SOURCES
+ knoteslegacy.cpp knoteconfig.kcfgc knotesglobalconfig.kcfgc knoteedit.cpp
+ knoteprinter.cpp knotesnetrecv.cpp knotesnetsend.cpp resourcemanager.cpp
+ resourcenotes.cpp resourcelocal.cpp resourcelocalconfig.cpp knote.cpp
+ knotebutton.cpp knoteconfigdlg.cpp knotehostdlg.cpp knotealarmdlg.cpp
+ knotesalarm.cpp
+ VERSION 0.0.0
+ LINK kdepim-shared kutils-shared kdeprint-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### install import cmake modules ###############
+
+tde_install_export( )
diff --git a/knotes/icons/CMakeLists.txt b/knotes/icons/CMakeLists.txt
new file mode 100644
index 000000000..8832743c6
--- /dev/null
+++ b/knotes/icons/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/knotes/icons )
diff --git a/knotes/pics/CMakeLists.txt b/knotes/pics/CMakeLists.txt
new file mode 100644
index 000000000..db8d4480c
--- /dev/null
+++ b/knotes/pics/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( )
diff --git a/knotes/pushpin.xpm b/knotes/pushpin.xpm
index 4aef6adf9..d80fa82b8 100644
--- a/knotes/pushpin.xpm
+++ b/knotes/pushpin.xpm
@@ -1,6 +1,6 @@
/* Pushpin XPM (courtsey google image search) [copyright :O ???] */
-static char *pushpin_xpm[] = {
+static const char *pushpin_xpm[] = {
"27 29 363 2",
" c None",
". c #F60404",
diff --git a/kode/CMakeLists.txt b/kode/CMakeLists.txt
new file mode 100644
index 000000000..d02a1b30f
--- /dev/null
+++ b/kode/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kxml_compiler )
+
+include_directories(
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kode (executable) #########################
+
+tde_add_executable( kode
+ SOURCES kodemain.cpp
+ LINK kode-shared kabc-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kode (shared) #############################
+
+tde_add_library( kode SHARED
+ SOURCES
+ code.cpp enum.cpp style.cpp printer.cpp license.cpp file.cpp class.cpp
+ function.cpp variable.cpp membervariable.cpp typedef.cpp statemachine.cpp
+ automakefile.cpp
+ VERSION 1.0.0
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kode/kxml_compiler/CMakeLists.txt b/kode/kxml_compiler/CMakeLists.txt
new file mode 100644
index 000000000..85592be8e
--- /dev/null
+++ b/kode/kxml_compiler/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kxml_compiler (executable) ################
+
+tde_add_executable( kxml_compiler
+ SOURCES
+ parser.cpp creator.cpp kxml_compiler.cpp
+ LINK kode-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kresources/CMakeLists.txt b/kresources/CMakeLists.txt
new file mode 100644
index 000000000..79e285e5e
--- /dev/null
+++ b/kresources/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( kresources )
+
+tde_import( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+tde_import( libkdepim )
+tde_import( knotes )
+
+add_subdirectory( lib )
+add_subdirectory( remote )
+tde_conditional_add_subdirectory( WITH_EGROUPWARE egroupware )
+tde_conditional_add_subdirectory( WITH_EXCHANGE exchange )
+tde_conditional_add_subdirectory( WITH_KOLAB kolab )
+tde_conditional_add_subdirectory( WITH_SLOX slox )
+tde_conditional_add_subdirectory( WITH_GROUPWISE groupwise )
+tde_conditional_add_subdirectory( WITH_FEATUREPLAN featureplan )
+tde_conditional_add_subdirectory( WITH_GROUPDAV groupdav )
+tde_conditional_add_subdirectory( WITH_BIRTHDAYS birthdays )
+tde_conditional_add_subdirectory( WITH_NEWEXCHANGE newexchange )
+tde_conditional_add_subdirectory( WITH_SCALIX scalix )
+tde_conditional_add_subdirectory( WITH_CALDAV caldav )
+tde_conditional_add_subdirectory( WITH_CARDDAV carddav )
+
+tde_install_export( )
diff --git a/kresources/birthdays/CMakeLists.txt b/kresources/birthdays/CMakeLists.txt
new file mode 100644
index 000000000..244226ee2
--- /dev/null
+++ b/kresources/birthdays/CMakeLists.txt
@@ -0,0 +1,45 @@
+#################################################
+#
+# (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
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ resourcekabc.h resourcekabcconfig.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/libkcal )
+
+
+##### other data ################################
+
+install( FILES kabc.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### kcal_kabc (module) #######################
+
+tde_add_kpart( kcal_kabc AUTOMOC
+ SOURCES
+ resourcekabc.cpp resourcekabcconfig.cpp
+ LINK kabcommon-static kdepim-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kresources/caldav/CMakeLists.txt b/kresources/caldav/CMakeLists.txt
new file mode 100644
index 000000000..7252012fd
--- /dev/null
+++ b/kresources/caldav/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CALDAV_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CALDAV_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES kcal_caldav.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### kcal_caldav (module) ######################
+
+tde_add_kpart( kcal_caldav AUTOMOC
+ SOURCES plugin.cpp
+ LINK kcal_caldav-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcal_caldav (shared) #########################
+
+tde_add_library( kcal_caldav SHARED AUTOMOC
+ SOURCES
+ resource.cpp config.cpp configwidgets.cpp preferences.cpp job.cpp
+ reader.cpp writer.cpp prefsskel.kcfgc
+ VERSION 1.0.0
+ LINK kdepim-shared ${CALDAV_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/caldav/ConfigureChecks.cmake b/kresources/caldav/ConfigureChecks.cmake
new file mode 100644
index 000000000..e98ff721d
--- /dev/null
+++ b/kresources/caldav/ConfigureChecks.cmake
@@ -0,0 +1,32 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME we need to check for patched library
+
+# libcaldav
+pkg_search_module( CALDAV libcaldav )
+if( CALDAV_FOUND )
+ execute_process(
+ COMMAND pkg-config libcaldav --variable=pkgincludedir
+ OUTPUT_VARIABLE _incdir
+ RESULT_VARIABLE _result
+ OUTPUT_STRIP_TRAILING_WHITESPACE )
+ execute_process(
+ COMMAND pkg-config libcaldav --variable=pkglibdir
+ OUTPUT_VARIABLE _libdir
+ RESULT_VARIABLE _result
+ OUTPUT_STRIP_TRAILING_WHITESPACE )
+ list( APPEND CALDAV_INCLUDE_DIRS ${_incdir} )
+ list( APPEND CALDAV_LIBRARY_DIRS ${_libdir} )
+ list( APPEND CALDAV_LIBRARIES caldav )
+else( )
+ tde_message_fatal( "libcaldav is requested, but was not found on your system" )
+endif( )
diff --git a/kresources/caldav/config.cpp b/kresources/caldav/config.cpp
index 578fd1bba..d6b9fdc7b 100644
--- a/kresources/caldav/config.cpp
+++ b/kresources/caldav/config.cpp
@@ -203,4 +203,6 @@ void ResourceCalDavConfig::slotSJournalsToggled( bool enabled ) {
mJournalsUrl->setEnabled(enabled);
}
+#include "config.moc"
+
// EOF ========================================================================
diff --git a/kresources/caldav/configwidgets.cpp b/kresources/caldav/configwidgets.cpp
index 594edd00f..4a7072b5f 100644
--- a/kresources/caldav/configwidgets.cpp
+++ b/kresources/caldav/configwidgets.cpp
@@ -244,4 +244,6 @@ void CalDavSaveConfig::slotIntervalToggled( bool checked )
}
}
+#include "configwidgets.moc"
+
// EOF ========================================================================
diff --git a/kresources/caldav/job.h b/kresources/caldav/job.h
index 928e38143..7d312d90b 100644
--- a/kresources/caldav/job.h
+++ b/kresources/caldav/job.h
@@ -23,7 +23,7 @@
#include <tqapplication.h>
extern "C" {
- #include <libcaldav/caldav.h>
+ #include <caldav.h>
}
namespace KCal {
diff --git a/kresources/caldav/resource.cpp b/kresources/caldav/resource.cpp
index 4293fb5a1..ea391139f 100644
--- a/kresources/caldav/resource.cpp
+++ b/kresources/caldav/resource.cpp
@@ -1005,4 +1005,6 @@ void ResourceCalDav::writingFinished() {
writingQueuePop();
}
+#include "resource.moc"
+
// EOF ========================================================================
diff --git a/kresources/carddav/CMakeLists.txt b/kresources/carddav/CMakeLists.txt
new file mode 100644
index 000000000..d68e38246
--- /dev/null
+++ b/kresources/carddav/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CARDDAV_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CARDDAV_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES kabc_carddav.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kabc_carddav (module) #####################
+
+tde_add_kpart( kabc_carddav AUTOMOC
+ SOURCES plugin.cpp
+ LINK kabc_carddav-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabc_carddav (shared) #####################
+
+tde_add_library( kabc_carddav SHARED AUTOMOC
+ SOURCES
+ resource.cpp config.cpp configwidgets.cpp preferences.cpp job.cpp
+ reader.cpp writer.cpp prefsskel.kcfgc
+ VERSION 1.0.0
+ LINK kdepim-shared ${CARDDAV_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/carddav/ConfigureChecks.cmake b/kresources/carddav/ConfigureChecks.cmake
new file mode 100644
index 000000000..62582fe9c
--- /dev/null
+++ b/kresources/carddav/ConfigureChecks.cmake
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# libcarddav
+pkg_search_module( CARDDAV libcarddav )
+if( CARDDAV_FOUND )
+ execute_process(
+ COMMAND pkg-config libcarddav --variable=pkgincludedir
+ OUTPUT_VARIABLE _incdir
+ RESULT_VARIABLE _result
+ OUTPUT_STRIP_TRAILING_WHITESPACE )
+ execute_process(
+ COMMAND pkg-config libcarddav --variable=pkglibdir
+ OUTPUT_VARIABLE _libdir
+ RESULT_VARIABLE _result
+ OUTPUT_STRIP_TRAILING_WHITESPACE )
+ list( APPEND CARDDAV_INCLUDE_DIRS ${_incdir} )
+ list( APPEND CARDDAV_LIBRARY_DIRS ${_libdir} )
+ list( APPEND CARDDAV_LIBRARIES carddav )
+else( )
+ tde_message_fatal( "libcarddav is requested, but was not found on your system" )
+endif( )
diff --git a/kresources/carddav/config.cpp b/kresources/carddav/config.cpp
index e8d7e25a0..337a4cdab 100644
--- a/kresources/carddav/config.cpp
+++ b/kresources/carddav/config.cpp
@@ -163,4 +163,6 @@ void ResourceCardDavConfig::setupUI() {
vertical->addLayout(horizontal);
}
+#include "config.moc"
+
// EOF ========================================================================
diff --git a/kresources/carddav/configwidgets.cpp b/kresources/carddav/configwidgets.cpp
index fbec299ad..b159a0211 100644
--- a/kresources/carddav/configwidgets.cpp
+++ b/kresources/carddav/configwidgets.cpp
@@ -242,4 +242,6 @@ void CardDavSaveConfig::slotIntervalToggled( bool checked )
}
}
+#include "configwidgets.moc"
+
// EOF ========================================================================
diff --git a/kresources/carddav/job.h b/kresources/carddav/job.h
index 75626abf3..52a04bc7a 100644
--- a/kresources/carddav/job.h
+++ b/kresources/carddav/job.h
@@ -22,7 +22,7 @@
#include <tqapplication.h>
extern "C" {
- #include <libcarddav/carddav.h>
+ #include <carddav.h>
}
namespace KABC {
diff --git a/kresources/carddav/resource.cpp b/kresources/carddav/resource.cpp
index 53bbf034c..b8a2525ed 100644
--- a/kresources/carddav/resource.cpp
+++ b/kresources/carddav/resource.cpp
@@ -677,4 +677,6 @@ void ResourceCardDav::writingFinished() {
}
}
+#include "resource.moc"
+
// EOF ========================================================================
diff --git a/kresources/egroupware/CMakeLists.txt b/kresources/egroupware/CMakeLists.txt
new file mode 100644
index 000000000..32fb481a9
--- /dev/null
+++ b/kresources/egroupware/CMakeLists.txt
@@ -0,0 +1,108 @@
+#################################################
+#
+# (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
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kabc_resourcexmlrpc.h kcal_resourcexmlrpc.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/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 kdepim-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 kdepim-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}
+)
diff --git a/kresources/exchange/CMakeLists.txt b/kresources/exchange/CMakeLists.txt
new file mode 100644
index 000000000..37eb0cad5
--- /dev/null
+++ b/kresources/exchange/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_import( libkpimexchange )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkpimexchange/core
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES exchange.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### resourcecalendarexchange (module) #########
+
+tde_add_kpart( resourcecalendarexchange AUTOMOC
+ SOURCES
+ resourceexchange.cpp resourceexchangeconfig.cpp dateset.cpp
+ LINK kpimexchange-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kresources/featureplan/CMakeLists.txt b/kresources/featureplan/CMakeLists.txt
new file mode 100644
index 000000000..01ffd669f
--- /dev/null
+++ b/kresources/featureplan/CMakeLists.txt
@@ -0,0 +1,73 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( BUILD_KODE )
+ set( KXML_COMPILER_EXECUTABLE ${CMAKE_BINARY_DIR}/kode/kxml_compiler/kxml_compiler )
+ set( KXML_COMPILER_TARGET kxml_compiler )
+else( )
+ find_program( KXML_COMPILER_EXECUTABLE
+ NAMES kxml_compiler
+ HINTS ${TDE_BIN_DIR} ${BIN_INSTALL_DIR} )
+ if( NOT KXML_COMPILER_EXECUTABLE )
+ tde_message_fatal( "kxml_compiler is NOT found.\n kode package is correctly installed?" )
+ endif( )
+endif( )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kcal_resourcefeatureplan.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### kcal_resourcefeatureplan (module) #########
+
+tde_add_kpart( kcal_resourcefeatureplan AUTOMOC
+ SOURCES kcal_resourcefeatureplanplugin.cpp
+ LINK kcal_resourcefeatureplan-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### featureplancommon (static) ################
+
+add_custom_command(
+ OUTPUT kde-features.h kde-features.cpp kde-features_parser.h kde-features_parser.cpp
+ COMMAND ${KXML_COMPILER_EXECUTABLE} --custom-parser ${CMAKE_CURRENT_SOURCE_DIR}/kde-features.rng >/dev/null
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/kde-features.rng ${KXML_COMPILER_TARGET} )
+
+tde_add_library( featureplancommon STATIC_PIC
+ SOURCES
+ kde-features.cpp kde-features_parser.cpp prefs.kcfgc
+)
+
+
+##### kcal_resourcefeatureplan (shared) #########
+
+tde_add_library( kcal_resourcefeatureplan SHARED AUTOMOC
+ SOURCES
+ kcal_resourcefeatureplan.cpp kcal_resourcefeatureplanconfig.cpp
+ VERSION 1.0.0
+ LINK featureplancommon-static kdepim-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/groupdav/CMakeLists.txt b/kresources/groupdav/CMakeLists.txt
new file mode 100644
index 000000000..b662437c3
--- /dev/null
+++ b/kresources/groupdav/CMakeLists.txt
@@ -0,0 +1,77 @@
+#################################################
+#
+# (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_CURRENT_BINARY_DIR}/../lib
+ ${CMAKE_CURRENT_SOURCE_DIR}/../lib
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kcal_groupdav.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+install( FILES uninstall.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal RENAME kcal_opengroupware.desktop )
+install( FILES kabc_groupdav.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+install( FILES uninstall.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc RENAME kabc_opengroupware.desktop)
+
+
+##### kcal_groupdav (module) ####################
+
+tde_add_kpart( kcal_groupdav AUTOMOC
+ SOURCES kcal_resourcegroupdav_plugin.cpp
+ LINK kcal_groupdav-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabc_groupdav (module) ####################
+
+tde_add_kpart( kabc_groupdav AUTOMOC
+ SOURCES kabc_resourcegroupdav_plugin.cpp
+ LINK kabc_groupdav-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kgroupdav (static) ########################
+
+tde_add_library( kgroupdav STATIC_PIC
+ SOURCES groupdavglobals.cpp
+)
+
+
+##### kcal_groupdav (shared) ####################
+
+tde_add_library( kcal_groupdav SHARED AUTOMOC
+ SOURCES groupdavcalendaradaptor.cpp kcal_resourcegroupdav.cpp
+ VERSION 1.0.0
+ LINK kgroupdav-static kgroupwaredav-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_groupdav (shared) ####################
+
+tde_add_library( kabc_groupdav SHARED AUTOMOC
+ SOURCES kabc_resourcegroupdav.cpp groupdavaddressbookadaptor.cpp
+ VERSION 1.0.0
+ LINK kgroupdav-static kgroupwaredav-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/groupwise/CMakeLists.txt b/kresources/groupwise/CMakeLists.txt
new file mode 100644
index 000000000..2b661be91
--- /dev/null
+++ b/kresources/groupwise/CMakeLists.txt
@@ -0,0 +1,75 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( soap )
+add_subdirectory( kioslave )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kcal_groupwise.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+install( FILES kabc_groupwise.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kcal_groupwise (module) ###################
+
+tde_add_kpart( kcal_groupwise AUTOMOC
+ SOURCES kcal_resourcegroupwise_plugin.cpp
+ LINK kcal_groupwise-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabc_groupwise (module) ###################
+
+tde_add_kpart( kabc_groupwise AUTOMOC
+ SOURCES kabc_resourcegroupwise_plugin.cpp
+ LINK kabc_groupwise-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcal_groupwise (shared) ###################
+
+tde_add_library( kcal_groupwise SHARED AUTOMOC
+ SOURCES
+ kcal_resourcegroupwise.cpp kcal_resourcegroupwiseconfig.cpp
+ kcal_groupwiseprefsbase.kcfgc kcal_groupwiseprefs.cpp
+ groupwisesettingswidget.cpp groupwisesettingswidgetbase.ui
+ VERSION 1.0.0
+ LINK gwsoap-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_groupwise (shared) ###################
+
+tde_add_library( kabc_groupwise SHARED AUTOMOC
+ SOURCES
+ kabc_resourcegroupwise.cpp kabc_resourcegroupwiseconfig.cpp
+ kabc_groupwiseprefs.kcfgc
+ VERSION 1.0.0
+ LINK gwsoap-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/groupwise/kioslave/CMakeLists.txt b/kresources/groupwise/kioslave/CMakeLists.txt
new file mode 100644
index 000000000..09a81f11a
--- /dev/null
+++ b/kresources/groupwise/kioslave/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}/../soap
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ groupwise.protocol groupwises.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_groupwise (module) ####################
+
+tde_add_kpart( kio_groupwise AUTOMOC
+ SOURCES groupwise.cpp
+ LINK gwsoap-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kresources/groupwise/soap/CMakeLists.txt b/kresources/groupwise/soap/CMakeLists.txt
new file mode 100644
index 000000000..316808007
--- /dev/null
+++ b/kresources/groupwise/soap/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME KDE_CXXFLAGS = -Wno-non-virtual-dtor
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### gwsoap (shared) ###########################
+
+tde_add_library( gwsoap SHARED AUTOMOC
+ SOURCES
+ contactconverter.cpp gwconverter.cpp incidenceconverter.cpp groupwiseserver.cpp
+ gwjobs.cpp ksslsocket.cpp soapC.cpp soapClient.cpp stdsoap2.cpp
+ VERSION 0.0.0
+ LINK kdepim-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/groupwise/soap/groupwiseserver.cpp b/kresources/groupwise/soap/groupwiseserver.cpp
index ac62a3640..83a75f6b8 100644
--- a/kresources/groupwise/soap/groupwiseserver.cpp
+++ b/kresources/groupwise/soap/groupwiseserver.cpp
@@ -208,7 +208,7 @@ int GroupwiseServer::gSoapSendCallback( struct soap * soap, const char *s, size_
ret = m_sock->writeBlock( s, n );
if ( ret < 0 ) {
kdError() << "Send failed: " << strerror( m_sock->systemError() )
- << " " << m_sock->sockeStatus() << " " << m_sock->fd() << endl;
+ << " " << m_sock->socketStatus() << " " << m_sock->fd() << endl;
soap->error = SOAP_TCP_ERROR;
return SOAP_TCP_ERROR;
}
@@ -217,7 +217,7 @@ int GroupwiseServer::gSoapSendCallback( struct soap * soap, const char *s, size_
if ( n !=0 ) {
kdError() << "Send failed: " << strerror( m_sock->systemError() )
- << " " << m_sock->sockeStatus() << " " << m_sock->fd() << endl;
+ << " " << m_sock->socketStatus() << " " << m_sock->fd() << endl;
soap->error = SOAP_TCP_ERROR;
}
@@ -246,7 +246,7 @@ size_t GroupwiseServer::gSoapReceiveCallback( struct soap *soap, char *s,
long ret = m_sock->readBlock( s, n );
if ( ret < 0 ) {
kdError() << "Receive failed: " << strerror( m_sock->systemError() )
- << " " << m_sock->sockeStatus() << " " << m_sock->fd() << endl;
+ << " " << m_sock->socketStatus() << " " << m_sock->fd() << endl;
} else {
if ( getenv("DEBUG_GW_RESOURCE") ) {
qDebug("*************************");
diff --git a/kresources/kolab/CMakeLists.txt b/kresources/kolab/CMakeLists.txt
new file mode 100644
index 000000000..01acd3972
--- /dev/null
+++ b/kresources/kolab/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( shared )
+add_subdirectory( kabc )
+add_subdirectory( knotes )
+add_subdirectory( kcal )
+
+install( FILES kolab-resource.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update )
+install( PROGRAMS upgrade-resourcetype.pl DESTINATION ${DATA_INSTALL_DIR}/kconf_update )
diff --git a/kresources/kolab/kabc/CMakeLists.txt b/kresources/kolab/kabc/CMakeLists.txt
new file mode 100644
index 000000000..63defa580
--- /dev/null
+++ b/kresources/kolab/kabc/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}/../shared
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES kolab.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+install(
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/../uninstall.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc
+ RENAME imap.desktop )
+
+
+##### kabc_kolab (module) #######################
+
+tde_add_kpart( kabc_kolab AUTOMOC
+ SOURCES resourcekolab_plugin.cpp
+ LINK kabckolab-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabckolab (shared) ########################
+
+tde_add_library( kabckolab SHARED AUTOMOC
+ SOURCES resourcekolab.cpp contact.cpp
+ VERSION 0.0.0
+ LINK resourcekolabshared-static kgroupwarebase-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/kolab/kcal/CMakeLists.txt b/kresources/kolab/kcal/CMakeLists.txt
new file mode 100644
index 000000000..238740a0b
--- /dev/null
+++ b/kresources/kolab/kcal/CMakeLists.txt
@@ -0,0 +1,56 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}/../shared
+ ${CMAKE_CURRENT_SOURCE_DIR}/../kcal
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES kolab.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+install(
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/../uninstall.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal
+ RENAME imap.desktop)
+
+
+##### kcal_kolab (module) #######################
+
+tde_add_kpart( kcal_kolab AUTOMOC
+ SOURCES
+ resourcekolab_plugin.cpp
+ LINK kcalkolab-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcalkolab (shared) ########################
+
+tde_add_library( kcalkolab SHARED AUTOMOC
+ SOURCES
+ incidence.cpp event.cpp task.cpp journal.cpp resourcekolab.cpp
+ VERSION 0.0.0
+ LINK resourcekolabshared-static kgroupwarebase-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/kolab/knotes/CMakeLists.txt b/kresources/kolab/knotes/CMakeLists.txt
new file mode 100644
index 000000000..a4aaecbc5
--- /dev/null
+++ b/kresources/kolab/knotes/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}/../shared
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/knotes
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES kolabresource.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes )
+
+install(
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/../uninstall.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes
+ RENAME imap.desktop )
+
+
+##### knotes_kolab (module) #####################
+
+tde_add_kpart( knotes_kolab AUTOMOC
+ SOURCES resourcekolab_plugin.cpp
+ LINK knoteskolab-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### knoteskolab (shared) ######################
+
+tde_add_library( knoteskolab SHARED AUTOMOC
+ SOURCES resourcekolab.cpp note.cpp
+ VERSION 0.0.0
+ LINK resourcekolabshared-static kgroupwarebase-shared knotes-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/kolab/shared/CMakeLists.txt b/kresources/kolab/shared/CMakeLists.txt
new file mode 100644
index 000000000..e06e1bce5
--- /dev/null
+++ b/kresources/kolab/shared/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kresources/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### resourcekolabshared (static) ##############
+
+set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
+
+tde_add_library( resourcekolabshared STATIC_PIC AUTOMOC
+ SOURCES
+ resourcekolabbase.cpp kmailconnection.cpp kolabbase.cpp subresource.cpp
+ kmailconnection.skel ${CMAKE_SOURCE_DIR}/kmail/kmailicalIface.stub
+)
diff --git a/kresources/lib/CMakeLists.txt b/kresources/lib/CMakeLists.txt
new file mode 100644
index 000000000..56b1177b4
--- /dev/null
+++ b/kresources/lib/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kgroupwarebase (shared) ###################
+
+tde_add_library( kgroupwarebase SHARED AUTOMOC
+ SOURCES
+ folderlister.cpp folderconfig.cpp folderlistview.cpp folderselectdialog.cpp
+ groupwaredataadaptor.cpp groupwaredownloadjob.cpp calendaradaptor.cpp
+ addressbookadaptor.cpp groupwareresourcejob.cpp groupwareuploadjob.cpp
+ kcal_resourcegroupwarebase.cpp kabc_resourcegroupwarebase.cpp
+ kresources_groupwareprefs.kcfgc kcal_resourcegroupwarebaseconfig.cpp
+ kabc_resourcegroupwarebaseconfig.cpp kcal_cachesettingsdlg.cpp
+ VERSION 0.0.0
+ LINK kdepim-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kgroupwaredav (shared) ####################
+
+tde_add_library( kgroupwaredav SHARED AUTOMOC
+ SOURCES
+ davcalendaradaptor.cpp davaddressbookadaptor.cpp webdavhandler.cpp
+ davgroupwareglobals.cpp
+ VERSION 0.0.0
+ LINK kgroupwarebase-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/lib/webdavhandler.cpp b/kresources/lib/webdavhandler.cpp
index fcf99a145..180740662 100644
--- a/kresources/lib/webdavhandler.cpp
+++ b/kresources/lib/webdavhandler.cpp
@@ -26,7 +26,7 @@
#include <tqdatetime.h>
extern "C" {
- #include <ical.h>
+ #include <libical/ical.h>
}
diff --git a/kresources/newexchange/CMakeLists.txt b/kresources/newexchange/CMakeLists.txt
new file mode 100644
index 000000000..325daa72f
--- /dev/null
+++ b/kresources/newexchange/CMakeLists.txt
@@ -0,0 +1,79 @@
+#################################################
+#
+# (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_CURRENT_BINARY_DIR}/../lib
+ ${CMAKE_CURRENT_SOURCE_DIR}/../lib
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kcal_newexchange.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+install( FILES kabc_newexchange.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kcal_newexchange (module) #################
+
+tde_add_kpart( kcal_newexchange AUTOMOC
+ SOURCES kcal_resourceexchange_plugin.cpp
+ LINK kcal_newexchange-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabc_newexchange (module) #################
+
+tde_add_kpart( kabc_newexchange AUTOMOC
+ SOURCES kabc_resourceexchange_plugin.cpp
+ LINK kabc_newexchange-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### knewexchange (static) #####################
+
+tde_add_library( knewexchange STATIC_PIC
+ SOURCES
+ exchangeglobals.cpp exchangeconvertercalendar.cpp
+ exchangeconvertercontact.cpp
+)
+
+
+##### kcal_newexchange (shared) #################
+
+tde_add_library( kcal_newexchange SHARED AUTOMOC
+ SOURCES
+ exchangecalendaradaptor.cpp kcal_resourceexchange.cpp
+ VERSION 1.0.0
+ LINK knewexchange-static kgroupwaredav-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_newexchange (shared) #################
+
+tde_add_library( kabc_newexchange SHARED AUTOMOC
+ SOURCES
+ exchangeaddressbookadaptor.cpp kabc_resourceexchange.cpp
+ VERSION 1.0.0
+ LINK knewexchange-static kgroupwaredav-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/remote/CMakeLists.txt b/kresources/remote/CMakeLists.txt
new file mode 100644
index 000000000..4f2ef07c7
--- /dev/null
+++ b/kresources/remote/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ resourceremoteconfig.h resourceremote.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/libkcal )
+
+
+##### other data ################################
+
+install( FILES
+ remote.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### kcal_remote (module) ######################
+
+tde_add_kpart( kcal_remote AUTOMOC
+ SOURCES resourceremote_plugin.cpp
+ LINK kcal_resourceremote-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcal_resourceremote (shared) ##############
+
+tde_add_library( kcal_resourceremote SHARED AUTOMOC
+ SOURCES
+ resourceremote.cpp resourceremoteconfig.cpp
+ VERSION 1.0.0
+ LINK kdepim-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/scalix/CMakeLists.txt b/kresources/scalix/CMakeLists.txt
new file mode 100644
index 000000000..ca7fc5237
--- /dev/null
+++ b/kresources/scalix/CMakeLists.txt
@@ -0,0 +1,17 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( shared )
+add_subdirectory( kabc )
+add_subdirectory( kcal )
+add_subdirectory( kioslave )
+add_subdirectory( knotes )
+add_subdirectory( scalixadmin )
diff --git a/kresources/scalix/kabc/CMakeLists.txt b/kresources/scalix/kabc/CMakeLists.txt
new file mode 100644
index 000000000..acbb6b4d6
--- /dev/null
+++ b/kresources/scalix/kabc/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES scalix.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+install(
+ FILES ../uninstall.desktop
+ RENAME imap.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kabc_scalix (module) ######################
+
+tde_add_kpart( kabc_scalix AUTOMOC
+ SOURCES resourcescalix_plugin.cpp
+ LINK kabcscalix-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabcscalix (shared) #######################
+
+tde_add_library( kabcscalix SHARED AUTOMOC
+ SOURCES resourcescalix.cpp contact.cpp
+ VERSION 0.0.0
+ LINK resourcescalixshared-static kgroupwarebase-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/scalix/kcal/CMakeLists.txt b/kresources/scalix/kcal/CMakeLists.txt
new file mode 100644
index 000000000..80527a087
--- /dev/null
+++ b/kresources/scalix/kcal/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES scalix.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+install(
+ FILES ../uninstall.desktop
+ RENAME imap.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### kcal_scalix (module) ######################
+
+tde_add_kpart( kcal_scalix AUTOMOC
+ SOURCES resourcescalix_plugin.cpp
+ LINK kcalscalix-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kcalscalix (shared) #######################
+
+tde_add_library( kcalscalix SHARED AUTOMOC
+ SOURCES resourcescalix.cpp
+ VERSION 0.0.0
+ LINK resourcescalixshared-static kgroupwarebase-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/scalix/kioslave/CMakeLists.txt b/kresources/scalix/kioslave/CMakeLists.txt
new file mode 100644
index 000000000..f37e6d980
--- /dev/null
+++ b/kresources/scalix/kioslave/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install(
+ FILES scalix.protocol scalixs.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_scalix (module) #######################
+
+tde_add_kpart( kio_scalix AUTOMOC
+ SOURCES scalix.cpp
+ LINK kdepim-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kresources/scalix/knotes/CMakeLists.txt b/kresources/scalix/knotes/CMakeLists.txt
new file mode 100644
index 000000000..3e7216a75
--- /dev/null
+++ b/kresources/scalix/knotes/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/knotes
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+# FIXME this is a conflict
+
+install(
+ FILES scalix.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes )
+
+install(
+ FILES ../uninstall.desktop
+ RENAME scalix.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes )
+
+
+##### knotes_scalix (module) ####################
+
+tde_add_kpart( knotes_scalix AUTOMOC
+ SOURCES resourcescalix_plugin.cpp
+ LINK knotesscalix-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### knotesscalix (shared) #####################
+
+tde_add_library( knotesscalix SHARED AUTOMOC
+ SOURCES resourcescalix.cpp
+ VERSION 0.0.0
+ LINK resourcescalixshared-static kgroupwarebase-shared knotes-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kresources/scalix/scalixadmin/CMakeLists.txt b/kresources/scalix/scalixadmin/CMakeLists.txt
new file mode 100644
index 000000000..f13d11a83
--- /dev/null
+++ b/kresources/scalix/scalixadmin/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### scalixadmin (executable) ##################
+
+tde_add_executable( scalixadmin AUTOMOC
+ SOURCES
+ main.cpp mainwindow.cpp passwordpage.cpp settings.cpp jobs.cpp
+ otherusermanager.cpp otheruserview.cpp otheruserpage.cpp ldapview.cpp
+ ldapdialog.cpp delegatemanager.cpp delegateview.cpp delegatepage.cpp
+ delegatedialog.cpp outofofficepage.cpp
+ LINK kabc-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kresources/scalix/shared/CMakeLists.txt b/kresources/scalix/shared/CMakeLists.txt
new file mode 100644
index 000000000..c1a6219be
--- /dev/null
+++ b/kresources/scalix/shared/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}/../../lib
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### resourcescalixshared (static) #############
+
+set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
+
+tde_add_library( resourcescalixshared STATIC_PIC AUTOMOC
+ SOURCES
+ resourcescalixbase.cpp kmailconnection.cpp scalixbase.cpp
+ subresource.cpp kmailconnection.skel
+ ${CMAKE_SOURCE_DIR}/kmail/kmailicalIface.stub
+)
diff --git a/kresources/slox/CMakeLists.txt b/kresources/slox/CMakeLists.txt
new file mode 100644
index 000000000..affdb50d8
--- /dev/null
+++ b/kresources/slox/CMakeLists.txt
@@ -0,0 +1,80 @@
+#################################################
+#
+# (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}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kcal_slox.desktop kcal_ox.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+install( FILES kabc_slox.desktop kabc_ox.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc )
+
+
+##### kcal_slox (module) ########################
+
+tde_add_kpart( kcal_slox AUTOMOC
+ SOURCES kcalresourceslox_plugin.cpp
+ LINK kcal_slox-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kabc_slox (module) ########################
+
+tde_add_kpart( kabc_slox AUTOMOC
+ SOURCES kabcresourceslox_plugin.cpp
+ LINK kabc_slox-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kslox (shared) ############################
+
+tde_add_library( kslox SHARED AUTOMOC
+ SOURCES
+ sloxaccounts.cpp webdavhandler.cpp sloxfolder.cpp sloxfoldermanager.cpp
+ sloxfolderdialog.cpp sloxbase.cpp
+ VERSION 0.0.0
+ LINK kdepim-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kabc_slox (shared) ########################
+
+tde_add_library( kabc_slox SHARED AUTOMOC
+ SOURCES
+ kabcresourceslox.cpp kabcresourcesloxconfig.cpp kabcsloxprefs.kcfgc
+ VERSION 0.0.0
+ LINK kslox-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kcal_slox (shared) ########################
+
+tde_add_library( kcal_slox SHARED AUTOMOC
+ SOURCES
+ kcalresourceslox.cpp kcalresourcesloxconfig.cpp kcalsloxprefs.kcfgc
+ VERSION 0.0.0
+ LINK kslox-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
new file mode 100644
index 000000000..b8af3e01e
--- /dev/null
+++ b/plugins/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( kmail )
diff --git a/plugins/kmail/CMakeLists.txt b/plugins/kmail/CMakeLists.txt
new file mode 100644
index 000000000..d4da18cd0
--- /dev/null
+++ b/plugins/kmail/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( bodypartformatter )
diff --git a/plugins/kmail/bodypartformatter/CMakeLists.txt b/plugins/kmail/bodypartformatter/CMakeLists.txt
new file mode 100644
index 000000000..9bdd490b8
--- /dev/null
+++ b/plugins/kmail/bodypartformatter/CMakeLists.txt
@@ -0,0 +1,80 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# FIXME KDE_CXXFLAGS = $(USE_RTTI)
+
+tde_import( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+tde_import( libkdepim )
+
+tde_import( libksieve )
+tde_import( mimelib )
+tde_import( libkdenetwork )
+tde_import( certmanager )
+tde_import( libkpimidentities )
+tde_import( libkpgp )
+tde_import( kmail )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkmime
+ ${CMAKE_SOURCE_DIR}/libemailfunctions
+ ${CMAKE_SOURCE_DIR}/kmail
+ ${CMAKE_SOURCE_DIR}/korganizer
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ text_vcard.desktop text_calendar.desktop text_xdiff.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kmail/plugins/bodypartformatter )
+
+
+##### libkmail_bodypartformatter_text_vcard (module)
+
+tde_add_kpart( libkmail_bodypartformatter_text_vcard AUTOMOC
+ SOURCES
+ text_vcard.cpp
+ LINK kdepim-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkmail_bodypartformatter_text_calendar (module)
+
+tde_add_kpart( libkmail_bodypartformatter_text_calendar AUTOMOC
+ SOURCES
+ text_calendar.cpp delegateselector.cpp attendeeselector.cpp
+ ui_attendeeselector.ui ${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub
+ LINK kmailprivate-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkmail_bodypartformatter_text_xdiff (module)
+
+tde_add_kpart( libkmail_bodypartformatter_text_xdiff AUTOMOC
+ SOURCES
+ text_xdiff.cpp
+ LINK ${TQT_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/wizards/CMakeLists.txt b/wizards/CMakeLists.txt
new file mode 100644
index 000000000..bde1512d4
--- /dev/null
+++ b/wizards/CMakeLists.txt
@@ -0,0 +1,240 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# Possible options:
+# - WITH_EGROUPWARE
+# - WITH_SLOX
+# - WITH_KOLAB
+# - WITH_NEWEXCHANGE
+# - WITH_GROUPWISE
+# - WITH_SCALIX
+
+tde_import( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+tde_import( libkdepim )
+tde_import( knotes )
+tde_import( kresources )
+
+if( WITH_KOLAB OR WITH_GROUPWISE OR WITH_SCALIX )
+ tde_import( libkdenetwork )
+ tde_import( certmanager )
+ tde_import( libkpimidentities )
+endif()
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/libkpimidentities
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/knotes
+ ${CMAKE_SOURCE_DIR}/kresources/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ groupwarewizard.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### helper ####################################
+
+macro( process_kcfg _who _out _path _kcfg _kcfgc )
+ add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/${_path}/${_out}
+ COMMAND
+ mkdir -p ${CMAKE_BINARY_DIR}/${_path}
+ COMMAND ${KDE3_KCFGC_EXECUTABLE}
+ -d ${CMAKE_BINARY_DIR}/${_path}
+ ${CMAKE_SOURCE_DIR}/${_path}/${_kcfg}
+ ${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc}
+ DEPENDS
+ ${CMAKE_SOURCE_DIR}/${_path}/${_kcfg}
+ ${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} )
+ set_property( SOURCE ${_who} APPEND
+ PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/${_path}/${_out} )
+endmacro()
+
+
+######## egroupwarewizard #######################
+
+if( WITH_EGROUPWARE )
+
+ install( FILES egroupware.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+ process_kcfg( egroupwarewizard.cpp kabc_egroupwareprefs.h kresources/egroupware
+ kresources_kabc_egroupware.kcfg kabc_egroupwareprefs.kcfgc )
+
+ process_kcfg( egroupwarewizard.cpp kcal_egroupwareprefs.h kresources/egroupware
+ kresources_kcal_egroupware.kcfg kcal_egroupwareprefs.kcfgc )
+
+ process_kcfg( egroupwarewizard.cpp knotes_egroupwareprefs.h kresources/egroupware
+ kresources_knotes_egroupware.kcfg knotes_egroupwareprefs.kcfgc )
+
+ tde_add_library( egroupwarewizard SHARED NO_EXPORT
+ SOURCES
+ egroupwarewizard.cpp egroupwareconfig.kcfgc
+ LINK kcal_xmlrpc-shared kabc_xmlrpc-shared knotes_xmlrpc-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+ tde_add_executable( egroupwarewizard
+ SOURCES egroupwaremain.cpp
+ LINK egroupwarewizard-shared
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+ set( EGROUPWAREWIZARD_LIBRARY egroupwarewizard-shared )
+
+endif()
+
+
+######## sloxwizard #############################
+
+if( WITH_SLOX )
+
+ install( FILES slox.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+ process_kcfg( sloxwizard.cpp kabcsloxprefs.h kresources/slox
+ kresources_kabc_slox.kcfg kabcsloxprefs.kcfgc )
+
+ process_kcfg( sloxwizard.cpp kcalsloxprefs.h kresources/slox
+ kresources_kcal_slox.kcfg kcalsloxprefs.kcfgc )
+
+ tde_add_library( sloxwizard SHARED NO_EXPORT
+ SOURCES
+ sloxwizard.cpp sloxconfig.kcfgc
+ LINK kcal_slox-shared kabc_slox-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+ tde_add_executable( sloxwizard
+ SOURCES sloxmain.cpp
+ LINK sloxwizard-shared
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+ set( SLOXWIZARD_LIBRARY sloxwizard-shared )
+
+endif()
+
+
+######## kolabwizard ############################
+
+if( WITH_KOLAB )
+
+ install( FILES kolab.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+ tde_add_library( kolabwizard SHARED NO_EXPORT
+ SOURCES
+ kolabwizard.cpp kmailchanges.cpp kolabconfig.kcfgc
+ kolabkmailchanges.cpp
+ LINK
+ kcalkolab-shared kabckolab-shared knoteskolab-shared
+ kpimidentities-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+ tde_add_executable( kolabwizard
+ SOURCES kolabmain.cpp
+ LINK kolabwizard-shared
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+ set( KOLABWIZARD_LIBRARY kolabwizard-shared )
+
+endif( )
+
+
+######## exchangewizard #########################
+
+if( WITH_NEWEXCHANGE )
+
+ tde_add_library( exchangewizard SHARED NO_EXPORT
+ SOURCES exchangewizard.cpp
+ LINK kcal_newexchange-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+ tde_add_executable( exchangewizard
+ SOURCES exchangemain.cpp
+ LINK exchangewizard-shared
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+ set( EXCHANGEWIZARD_LIBRARY exchangewizard-shared )
+
+endif()
+
+
+######## groupwisewizard ########################
+
+if( WITH_GROUPWISE )
+
+ install( FILES groupwise.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+ process_kcfg( groupwisewizard.cpp kcal_groupwiseprefsbase.h kresources/groupwise
+ kresources_kcal_groupwise.kcfg kcal_groupwiseprefsbase.kcfgc )
+
+ process_kcfg( groupwisewizard.cpp kabc_groupwiseprefs.h kresources/groupwise
+ kresources_kabc_groupwise.kcfg kabc_groupwiseprefs.kcfgc )
+
+ tde_add_library( groupwisewizard SHARED AUTOMOC NO_EXPORT
+ SOURCES
+ groupwisewizard.cpp groupwiseconfig.kcfgc kmailchanges.cpp
+ LINK kcal_groupwise-shared kabc_groupwise-shared kpimidentities-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+ tde_add_executable( groupwisewizard
+ SOURCES groupwisemain.cpp
+ LINK groupwisewizard-shared
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+endif()
+
+
+######## scalixwizard ###########################
+
+if( WITH_SCALIX )
+
+ install( FILES scalix.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+ tde_add_library( scalixwizard SHARED NO_EXPORT
+ SOURCES
+ scalixwizard.cpp kmailchanges.cpp scalixconfig.kcfgc
+ scalixkmailchanges.cpp
+ LINK kcalscalix-shared kabcscalix-shared kpimidentities-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+ tde_add_executable( scalixwizard
+ SOURCES scalixmain.cpp
+ LINK scalixwizard-shared
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+endif()
+
+
+##### groupwarewizard (executable) ##############
+
+if( WITH_EGROUPWARE OR WITH_SLOX OR WITH_KOLAB OR WITH_NEWEXCHANGE )
+
+ configure_file( wizards-config.h.cmake wizards-config.h @ONLY )
+
+ tde_add_executable( groupwarewizard AUTOMOC
+ SOURCES
+ groupwarewizard.cpp main.cpp overviewpage.cpp
+ LINK
+ ${EGROUPWAREWIZARD_LIBRARY} ${SLOXWIZARD_LIBRARY}
+ ${KOLABWIZARD_LIBRARY} ${EXCHANGEWIZARD_LIBRARY}
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+endif()
diff --git a/wizards/overviewpage.cpp b/wizards/overviewpage.cpp
index e0a544ad9..a15b580eb 100644
--- a/wizards/overviewpage.cpp
+++ b/wizards/overviewpage.cpp
@@ -32,6 +32,7 @@
#include <kpushbutton.h>
#include <kstdguiitem.h>
+#include "wizards-config.h"
#include "egroupwarewizard.h"
#include "kolabwizard.h"
#include "sloxwizard.h"
@@ -60,25 +61,34 @@ OverViewPage::OverViewPage( TQWidget *parent, const char *name )
label = new TQLabel( i18n( "Select the type of server you want connect your KDE to:" ), this );
tqlayout->addMultiCellWidget( label, 2, 2, 0, 3 );
- TQPushButton *button = new TQPushButton( i18n("eGroupware"), this );
+ TQPushButton *button;
+
+#ifdef WITH_EGROUPWARE
+ button = new TQPushButton( i18n("eGroupware"), this );
tqlayout->addMultiCellWidget( button, 3, 3, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardEGroupware() ) );
+#endif
// FIXME: Maybe hyperlinks would be better than buttons.
+#ifdef WITH_KOLAB
button = new TQPushButton( i18n("Kolab"), this );
tqlayout->addMultiCellWidget( button, 4, 4, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardKolab() ) );
+#endif
+#ifdef WITH_SLOX
button = new TQPushButton( i18n("SUSE Linux Openexchange (SLOX)"), this );
tqlayout->addMultiCellWidget( button, 5, 5, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardSlox() ) );
+#endif
+#ifdef WITH_NEWEXCHANGE
button = new TQPushButton( i18n("Microsoft Exchange"), this );
button->hide(); // not quite ready yet
tqlayout->addMultiCellWidget( button, 6, 6, 0, 3 );
connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( showWizardExchange() ) );
-
+#endif
TQFrame *frame = new TQFrame( this );
frame->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
@@ -100,26 +110,34 @@ OverViewPage::~OverViewPage()
void OverViewPage::showWizardEGroupware()
{
+#ifdef WITH_EGROUPWARE
EGroupwareWizard wizard;
wizard.exec();
+#endif
}
void OverViewPage::showWizardKolab()
{
+#ifdef WITH_KOLAB
KolabWizard wizard;
wizard.exec();
+#endif
}
void OverViewPage::showWizardSlox()
{
+#ifdef WITH_SLOX
SloxWizard wizard;
wizard.exec();
+#endif
}
void OverViewPage::showWizardExchange()
{
+#ifdef WITH_NEWEXCHANGE
ExchangeWizard wizard;
wizard.exec();
+#endif
}
#include "overviewpage.moc"
diff --git a/wizards/wizards-config.h.cmake b/wizards/wizards-config.h.cmake
new file mode 100644
index 000000000..2f4a92f2e
--- /dev/null
+++ b/wizards/wizards-config.h.cmake
@@ -0,0 +1,4 @@
+#cmakedefine WITH_EGROUPWARE 1
+#cmakedefine WITH_SLOX 1
+#cmakedefine WITH_KOLAB 1
+#cmakedefine WITH_NEWEXCHANGE 1