From f5b07a4a12d57d28dee8662d296dd400d26ba7fe Mon Sep 17 00:00:00 2001 From: samelian Date: Mon, 21 Mar 2011 00:29:04 +0000 Subject: [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 --- kresources/kolab/CMakeLists.txt | 18 +++++++++++ kresources/kolab/kabc/CMakeLists.txt | 53 ++++++++++++++++++++++++++++++++ kresources/kolab/kcal/CMakeLists.txt | 56 ++++++++++++++++++++++++++++++++++ kresources/kolab/knotes/CMakeLists.txt | 54 ++++++++++++++++++++++++++++++++ kresources/kolab/shared/CMakeLists.txt | 29 ++++++++++++++++++ 5 files changed, 210 insertions(+) create mode 100644 kresources/kolab/CMakeLists.txt create mode 100644 kresources/kolab/kabc/CMakeLists.txt create mode 100644 kresources/kolab/kcal/CMakeLists.txt create mode 100644 kresources/kolab/knotes/CMakeLists.txt create mode 100644 kresources/kolab/shared/CMakeLists.txt (limited to 'kresources/kolab') 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 +) -- cgit v1.2.1