Browse Source

[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
v3.5.13-sru
samelian 12 years ago
parent
commit
f5b07a4a12
  1. 25
      CMakeLists.txt
  2. 1
      kaddressbook/CMakeLists.txt
  3. 7
      kmail/CMakeLists.txt
  4. 85
      knotes/CMakeLists.txt
  5. 12
      knotes/icons/CMakeLists.txt
  6. 12
      knotes/pics/CMakeLists.txt
  7. 2
      knotes/pushpin.xpm
  8. 43
      kode/CMakeLists.txt
  9. 30
      kode/kxml_compiler/CMakeLists.txt
  10. 35
      kresources/CMakeLists.txt
  11. 45
      kresources/birthdays/CMakeLists.txt
  12. 53
      kresources/caldav/CMakeLists.txt
  13. 32
      kresources/caldav/ConfigureChecks.cmake
  14. 2
      kresources/caldav/config.cpp
  15. 2
      kresources/caldav/configwidgets.cpp
  16. 2
      kresources/caldav/job.h
  17. 2
      kresources/caldav/resource.cpp
  18. 54
      kresources/carddav/CMakeLists.txt
  19. 30
      kresources/carddav/ConfigureChecks.cmake
  20. 2
      kresources/carddav/config.cpp
  21. 2
      kresources/carddav/configwidgets.cpp
  22. 2
      kresources/carddav/job.h
  23. 2
      kresources/carddav/resource.cpp
  24. 108
      kresources/egroupware/CMakeLists.txt
  25. 39
      kresources/exchange/CMakeLists.txt
  26. 73
      kresources/featureplan/CMakeLists.txt
  27. 77
      kresources/groupdav/CMakeLists.txt
  28. 75
      kresources/groupwise/CMakeLists.txt
  29. 38
      kresources/groupwise/kioslave/CMakeLists.txt
  30. 37
      kresources/groupwise/soap/CMakeLists.txt
  31. 6
      kresources/groupwise/soap/groupwiseserver.cpp
  32. 18
      kresources/kolab/CMakeLists.txt
  33. 53
      kresources/kolab/kabc/CMakeLists.txt
  34. 56
      kresources/kolab/kcal/CMakeLists.txt
  35. 54
      kresources/kolab/knotes/CMakeLists.txt
  36. 29
      kresources/kolab/shared/CMakeLists.txt
  37. 51
      kresources/lib/CMakeLists.txt
  38. 2
      kresources/lib/webdavhandler.cpp
  39. 79
      kresources/newexchange/CMakeLists.txt
  40. 55
      kresources/remote/CMakeLists.txt
  41. 17
      kresources/scalix/CMakeLists.txt
  42. 52
      kresources/scalix/kabc/CMakeLists.txt
  43. 52
      kresources/scalix/kcal/CMakeLists.txt
  44. 36
      kresources/scalix/kioslave/CMakeLists.txt
  45. 55
      kresources/scalix/knotes/CMakeLists.txt
  46. 33
      kresources/scalix/scalixadmin/CMakeLists.txt
  47. 30
      kresources/scalix/shared/CMakeLists.txt
  48. 80
      kresources/slox/CMakeLists.txt
  49. 12
      plugins/CMakeLists.txt
  50. 12
      plugins/kmail/CMakeLists.txt
  51. 80
      plugins/kmail/bodypartformatter/CMakeLists.txt
  52. 240
      wizards/CMakeLists.txt
  53. 22
      wizards/overviewpage.cpp
  54. 4
      wizards/wizards-config.h.cmake

25
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 #####################

1
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 )

7
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( )

85
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( )

12
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 )

12
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( )

2
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",

43
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}
)

30
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}
)

35
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( )

45
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}
)

53
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}
)

32
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( )

2
kresources/caldav/config.cpp

@ -203,4 +203,6 @@ void ResourceCalDavConfig::slotSJournalsToggled( bool enabled ) {
mJournalsUrl->setEnabled(enabled);
}
#include "config.moc"
// EOF ========================================================================

2
kresources/caldav/configwidgets.cpp

@ -244,4 +244,6 @@ void CalDavSaveConfig::slotIntervalToggled( bool checked )
}
}
#include "configwidgets.moc"
// EOF ========================================================================

2
kresources/caldav/job.h

@ -23,7 +23,7 @@
#include <tqapplication.h>
extern "C" {
#include <libcaldav/caldav.h>
#include <caldav.h>
}
namespace KCal {

2
kresources/caldav/resource.cpp

@ -1005,4 +1005,6 @@ void ResourceCalDav::writingFinished() {
writingQueuePop();
}
#include "resource.moc"
// EOF ========================================================================

54
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}
)

30
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( )

2
kresources/carddav/config.cpp

@ -163,4 +163,6 @@ void ResourceCardDavConfig::setupUI() {
vertical->addLayout(horizontal);
}
#include "config.moc"
// EOF ========================================================================

2
kresources/carddav/configwidgets.cpp

@ -242,4 +242,6 @@ void CardDavSaveConfig::slotIntervalToggled( bool checked )
}
}
#include "configwidgets.moc"
// EOF ========================================================================

2
kresources/carddav/job.h

@ -22,7 +22,7 @@
#include <tqapplication.h>
extern "C" {
#include <libcarddav/carddav.h>
#include <carddav.h>
}
namespace KABC {

2
kresources/carddav/resource.cpp

@ -677,4 +677,6 @@ void ResourceCardDav::writingFinished() {
}
}
#include "resource.moc"
// EOF ========================================================================

108
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}
)

39
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}
)

73
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}
)

77
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}
)

75
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}
)

38
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}
)

37
kresources/groupwise/soap/CMakeLists.txt

@ -0,0 +1,37 @@
#################################################
#</