From d1d1efd4b6e23b95498ddfb6512a70eb210ab3c6 Mon Sep 17 00:00:00 2001 From: samelian Date: Mon, 7 Mar 2011 00:09:34 +0000 Subject: [PATCH] [kdepim] added cmake support for korn; added include path to libkdepim where is needed git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223999 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- CMakeLists.txt | 2 + akregator/src/mk4storage/CMakeLists.txt | 1 + kaddressbook/common/CMakeLists.txt | 1 + kaddressbook/editors/CMakeLists.txt | 1 + kaddressbook/features/CMakeLists.txt | 1 + kaddressbook/interfaces/CMakeLists.txt | 1 + kaddressbook/kcmconfigs/CMakeLists.txt | 1 + kaddressbook/views/CMakeLists.txt | 1 + kaddressbook/xxport/CMakeLists.txt | 1 + kalarm/CMakeLists.txt | 1 + kalarm/kalarmd/CMakeLists.txt | 1 + kalarm/lib/CMakeLists.txt | 1 + korn/CMakeLists.txt | 55 +++++++++++++++++++++++++ korn/kconf_update/CMakeLists.txt | 38 +++++++++++++++++ korn/label.cpp | 2 + 15 files changed, 108 insertions(+) create mode 100644 korn/CMakeLists.txt create mode 100644 korn/kconf_update/CMakeLists.txt create mode 100644 korn/label.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index d91a16b5..53ff85a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,7 @@ option( BUILD_KMAIL "Build kmail" ${BUILD_ALL} ) option( BUILD_AKREGATOR "Build akregator" ${BUILD_ALL} ) option( BUILD_KALARM "Build kalarm" ${BUILD_ALL} ) option( BUILD_KADDRESSBOOK "Build kaddressbook" ${BUILD_ALL} ) +option( BUILD_KORN "Build korn" ${BUILD_ALL} ) ##### configure checks ########################## @@ -122,6 +123,7 @@ tde_conditional_add_subdirectory( BUILD_KMAIL kmail ) tde_conditional_add_subdirectory( BUILD_AKREGATOR akregator ) tde_conditional_add_subdirectory( BUILD_KALARM kalarm ) tde_conditional_add_subdirectory( BUILD_KADDRESSBOOK kaddressbook ) +tde_conditional_add_subdirectory( BUILD_KORN korn ) ##### write configure files ##################### diff --git a/akregator/src/mk4storage/CMakeLists.txt b/akregator/src/mk4storage/CMakeLists.txt index 01795d99..c469d994 100644 --- a/akregator/src/mk4storage/CMakeLists.txt +++ b/akregator/src/mk4storage/CMakeLists.txt @@ -15,6 +15,7 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/akregator/src ${CMAKE_SOURCE_DIR}/akregator/src/mk4storage/metakit/include + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kaddressbook/common/CMakeLists.txt b/kaddressbook/common/CMakeLists.txt index 36963838..69d212c5 100644 --- a/kaddressbook/common/CMakeLists.txt +++ b/kaddressbook/common/CMakeLists.txt @@ -12,6 +12,7 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kaddressbook/editors/CMakeLists.txt b/kaddressbook/editors/CMakeLists.txt index 0d4e1237..8ee44a15 100644 --- a/kaddressbook/editors/CMakeLists.txt +++ b/kaddressbook/editors/CMakeLists.txt @@ -18,6 +18,7 @@ include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/libkdenetwork ${CMAKE_SOURCE_DIR}/kaddressbook/interfaces + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ${GPGME_INCLUDE_DIRS} diff --git a/kaddressbook/features/CMakeLists.txt b/kaddressbook/features/CMakeLists.txt index 73f47ba1..1be91122 100644 --- a/kaddressbook/features/CMakeLists.txt +++ b/kaddressbook/features/CMakeLists.txt @@ -15,6 +15,7 @@ include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/kaddressbook ${CMAKE_SOURCE_DIR}/kaddressbook/interfaces + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kaddressbook/interfaces/CMakeLists.txt b/kaddressbook/interfaces/CMakeLists.txt index 67438ece..e8260b7b 100644 --- a/kaddressbook/interfaces/CMakeLists.txt +++ b/kaddressbook/interfaces/CMakeLists.txt @@ -13,6 +13,7 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kaddressbook/kcmconfigs/CMakeLists.txt b/kaddressbook/kcmconfigs/CMakeLists.txt index 835acb61..60d8f320 100644 --- a/kaddressbook/kcmconfigs/CMakeLists.txt +++ b/kaddressbook/kcmconfigs/CMakeLists.txt @@ -15,6 +15,7 @@ include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/kaddressbook/common ${CMAKE_SOURCE_DIR}/kaddressbook/interfaces + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kaddressbook/views/CMakeLists.txt b/kaddressbook/views/CMakeLists.txt index b1ab1103..a0cc5417 100644 --- a/kaddressbook/views/CMakeLists.txt +++ b/kaddressbook/views/CMakeLists.txt @@ -17,6 +17,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/kaddressbook ${CMAKE_SOURCE_DIR}/kaddressbook/interfaces ${CMAKE_SOURCE_DIR}/kaddressbook/common + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kaddressbook/xxport/CMakeLists.txt b/kaddressbook/xxport/CMakeLists.txt index 6d61f97e..17870549 100644 --- a/kaddressbook/xxport/CMakeLists.txt +++ b/kaddressbook/xxport/CMakeLists.txt @@ -18,6 +18,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/kaddressbook ${CMAKE_SOURCE_DIR}/kaddressbook/interfaces ${CMAKE_SOURCE_DIR}/libkdenetwork + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ${GNOKII_INCLUDE_DIRS} diff --git a/kalarm/CMakeLists.txt b/kalarm/CMakeLists.txt index 3ff68394..1c8726ad 100644 --- a/kalarm/CMakeLists.txt +++ b/kalarm/CMakeLists.txt @@ -29,6 +29,7 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/libkmime + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kalarm/kalarmd/CMakeLists.txt b/kalarm/kalarmd/CMakeLists.txt index c3e16336..294ef7a4 100644 --- a/kalarm/kalarmd/CMakeLists.txt +++ b/kalarm/kalarmd/CMakeLists.txt @@ -13,6 +13,7 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/kalarm/lib/CMakeLists.txt b/kalarm/lib/CMakeLists.txt index 6564d5f1..739c6359 100644 --- a/kalarm/lib/CMakeLists.txt +++ b/kalarm/lib/CMakeLists.txt @@ -15,6 +15,7 @@ include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/kalarm + ${CMAKE_SOURCE_DIR}/libkdepim ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} ) diff --git a/korn/CMakeLists.txt b/korn/CMakeLists.txt new file mode 100644 index 00000000..5e6a7d7a --- /dev/null +++ b/korn/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 +# +################################################# + +# FIXME KDE_CXXFLAGS = $(USE_RTTI) + +tde_import( libkmime ) + +add_subdirectory( kconf_update ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkmime + ${CMAKE_SOURCE_DIR}/libkdepim + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_icons( korn ) +install( FILES KOrn.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) + + +##### korn (executable) ######################### + +tde_add_executable( korn AUTOMOC + SOURCES + accountmanager.cpp account_input.cpp boxcontainer.cpp boxcontaineritem.cpp + boxcontaineritem.skel dcopdrop.cpp dcopdropif.cpp dcopdropif.skel + dcop_proto.cpp dockedcontainer.cpp dockeditem.cpp hvcontainer.cpp hvitem.cpp + keditlistboxman.cpp nntp_proto.cpp maildrop.cpp main.cpp polldrop.cpp + protocols.cpp kornshell.cpp subjectsdlg.cpp maildlg.cpp mailid.cpp + mailsubject.cpp mbox_proto.cpp imap_proto.cpp intid.cpp stringid.cpp + kornapp.cpp kio.cpp kio_count.cpp kio_proto.cpp kio_subjects.cpp + kio_single_subject.cpp kio_read.cpp kio_delete.cpp kmail_proto.cpp + sortedmailsubject.cpp korncfgimpl.cpp kornaccountcfgimpl.cpp kornboxcfgimpl.cpp + kornaccountcfg.ui kornboxcfg.ui korncfg.ui password.cpp pop3_proto.cpp + systemtray.cpp process_proto.cpp progress_dialog.ui qmail_proto.cpp label.cpp + LINK kmime-shared kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/korn/kconf_update/CMakeLists.txt b/korn/kconf_update/CMakeLists.txt new file mode 100644 index 00000000..88c06088 --- /dev/null +++ b/korn/kconf_update/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( + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + korn-3-4-config_change.upd korn-3-5-update.upd + DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + +install( PROGRAMS + korn-3-5-ssl-update.pl korn-3-5-metadata-update.pl + DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + + +##### korn-3-4-config_change (executable) ####### + +tde_add_executable( korn-3-4-config_change + SOURCES korn-3-4-config_change.cpp + LINK ${TQT_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin +) diff --git a/korn/label.cpp b/korn/label.cpp new file mode 100644 index 00000000..ffca7173 --- /dev/null +++ b/korn/label.cpp @@ -0,0 +1,2 @@ +#include "label.h" +#include "label.moc"