From c6499535d3cc17f9a54f8681f1dfe6b9dd16c2d6 Mon Sep 17 00:00:00 2001 From: samelian Date: Wed, 23 Mar 2011 21:19:31 +0000 Subject: [kdepim] kontact ported to cmake git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225846 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kontact/plugins/CMakeLists.txt | 24 ++++++++ kontact/plugins/akregator/CMakeLists.txt | 40 +++++++++++++ kontact/plugins/kaddressbook/CMakeLists.txt | 44 ++++++++++++++ kontact/plugins/karm/CMakeLists.txt | 36 +++++++++++ kontact/plugins/kmail/CMakeLists.txt | 92 +++++++++++++++++++++++++++++ kontact/plugins/knode/CMakeLists.txt | 36 +++++++++++ kontact/plugins/knotes/CMakeLists.txt | 43 ++++++++++++++ kontact/plugins/korganizer/CMakeLists.txt | 89 ++++++++++++++++++++++++++++ kontact/plugins/newsticker/CMakeLists.txt | 46 +++++++++++++++ kontact/plugins/specialdates/CMakeLists.txt | 49 +++++++++++++++ kontact/plugins/summary/CMakeLists.txt | 50 ++++++++++++++++ kontact/plugins/weather/CMakeLists.txt | 38 ++++++++++++ 12 files changed, 587 insertions(+) create mode 100644 kontact/plugins/CMakeLists.txt create mode 100644 kontact/plugins/akregator/CMakeLists.txt create mode 100644 kontact/plugins/kaddressbook/CMakeLists.txt create mode 100644 kontact/plugins/karm/CMakeLists.txt create mode 100644 kontact/plugins/kmail/CMakeLists.txt create mode 100644 kontact/plugins/knode/CMakeLists.txt create mode 100644 kontact/plugins/knotes/CMakeLists.txt create mode 100644 kontact/plugins/korganizer/CMakeLists.txt create mode 100644 kontact/plugins/newsticker/CMakeLists.txt create mode 100644 kontact/plugins/specialdates/CMakeLists.txt create mode 100644 kontact/plugins/summary/CMakeLists.txt create mode 100644 kontact/plugins/weather/CMakeLists.txt (limited to 'kontact/plugins') diff --git a/kontact/plugins/CMakeLists.txt b/kontact/plugins/CMakeLists.txt new file mode 100644 index 000000000..54b60cd82 --- /dev/null +++ b/kontact/plugins/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +# NOTE kpilot was moved from kdepim + +add_subdirectory( kaddressbook ) +add_subdirectory( kmail ) +add_subdirectory( knotes ) +add_subdirectory( korganizer ) +add_subdirectory( summary ) +add_subdirectory( weather ) +add_subdirectory( knode ) +add_subdirectory( newsticker ) +add_subdirectory( specialdates ) +add_subdirectory( akregator ) +add_subdirectory( karm ) diff --git a/kontact/plugins/akregator/CMakeLists.txt b/kontact/plugins/akregator/CMakeLists.txt new file mode 100644 index 000000000..3af6bd6cc --- /dev/null +++ b/kontact/plugins/akregator/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (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}/../../interfaces + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/akregator/src + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### other data ################################ + +install( FILES + akregatorplugin.desktop akregatorplugin3.2.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### libkontact_akregator (module) ############# + +tde_add_kpart( libkontact_akregator AUTOMOC + SOURCES + akregator_plugin.cpp + ${CMAKE_SOURCE_DIR}/akregator/src/akregator_partiface.stub + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/kaddressbook/CMakeLists.txt b/kontact/plugins/kaddressbook/CMakeLists.txt new file mode 100644 index 000000000..9786fa62f --- /dev/null +++ b/kontact/plugins/kaddressbook/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (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}/../../interfaces + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkdepim + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + kaddressbookplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### libkontact_kaddressbookplugin (module) #### + +set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} ) + +tde_add_kpart( libkontact_kaddressbookplugin AUTOMOC + SOURCES + kaddressbook_plugin.cpp + ${CMAKE_SOURCE_DIR}/kaddressbook/kaddressbookiface.stub + ${CMAKE_SOURCE_DIR}/kmail/kmailIface.stub + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/karm/CMakeLists.txt b/kontact/plugins/karm/CMakeLists.txt new file mode 100644 index 000000000..e3e0e60e9 --- /dev/null +++ b/kontact/plugins/karm/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} + ${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES karmplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### libkontact_karm (module) ################## + +tde_add_kpart( libkontact_karm AUTOMOC + SOURCES + karm_plugin.cpp ${CMAKE_SOURCE_DIR}/karm/karmdcopiface.stub + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/kmail/CMakeLists.txt b/kontact/plugins/kmail/CMakeLists.txt new file mode 100644 index 000000000..ce0ddcac7 --- /dev/null +++ b/kontact/plugins/kmail/CMakeLists.txt @@ -0,0 +1,92 @@ +################################################# +# +# (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}/../../interfaces + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kmail + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libkdepim + ${CMAKE_SOURCE_DIR}/kmail + ${CMAKE_SOURCE_DIR}/certmanager/lib + ${CMAKE_SOURCE_DIR}/libkdenetwork + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${GPGME_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kcmkmailsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kmailplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### 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() + + +##### libkontact_kmailplugin (module) ########### + +set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} ) + +process_kcfg( kmail_plugin.cpp globalsettings_base.h kmail + kmail.kcfg globalsettings_base.kcfgc ) + +add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/kmail/templatesconfiguration_base.h + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/kmail + COMMAND ${CMAKE_COMMAND} + -DQT_UIC_EXECUTABLE:FILEPATH=${QT_UIC_EXECUTABLE} + -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR} + -DUI_FILE:FILEPATH=${CMAKE_SOURCE_DIR}/kmail/templatesconfiguration_base.ui + -P ${CMAKE_MODULE_PATH}/tde_uic.cmake + DEPENDS + ${CMAKE_BINARY_DIR}/kmail/globalsettings_base.h + ${CMAKE_SOURCE_DIR}/kmail/templatesconfiguration_base.ui ) + +set_property( SOURCE kmail_plugin.cpp APPEND + PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/kmail/templatesconfiguration_base.h ) + +tde_add_kpart( libkontact_kmailplugin AUTOMOC + SOURCES + kmail_plugin.cpp summarywidget.cpp summarywidget.skel + ${CMAKE_SOURCE_DIR}/kmail/kmailIface.stub + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_kmailsummary (module) ################# + +tde_add_kpart( kcm_kmailsummary AUTOMOC + SOURCES kcmkmailsummary.cpp + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/knode/CMakeLists.txt b/kontact/plugins/knode/CMakeLists.txt new file mode 100644 index 000000000..a540a897f --- /dev/null +++ b/kontact/plugins/knode/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} + ${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES knodeplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### libkontact_knodeplugin (module) ########### + +tde_add_kpart( libkontact_knodeplugin AUTOMOC + SOURCES + knode_plugin.cpp ${CMAKE_SOURCE_DIR}/knode/knodeiface.stub + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/knotes/CMakeLists.txt b/kontact/plugins/knotes/CMakeLists.txt new file mode 100644 index 000000000..db6a6c471 --- /dev/null +++ b/kontact/plugins/knotes/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 +# +################################################# + +tde_import( knotes ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces + ${CMAKE_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES knotesplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) +install( FILES knotes_part.rc DESTINATION ${DATA_INSTALL_DIR}/knotes ) + + +##### libkontact_knotesplugin (module) ########## + +set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} ) + +tde_add_kpart( libkontact_knotesplugin AUTOMOC + SOURCES + knotes_plugin.cpp knotes_part.cpp summarywidget.cpp knotetip.cpp + ${CMAKE_SOURCE_DIR}/knotes/KNotesIface.skel + LINK kpinterfaces-shared knotes-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/korganizer/CMakeLists.txt b/kontact/plugins/korganizer/CMakeLists.txt new file mode 100644 index 000000000..4058a0682 --- /dev/null +++ b/kontact/plugins/korganizer/CMakeLists.txt @@ -0,0 +1,89 @@ +################################################# +# +# (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( libkholidays ) +tde_import( korganizer ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/korganizer + ${CMAKE_SOURCE_DIR}/korganizer/interfaces + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + korganizerplugin.desktop todoplugin.desktop journalplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + +install( FILES + kcmkorgsummary.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libkontact_korganizerplugin (module) ###### + +tde_add_kpart( libkontact_korganizerplugin AUTOMOC + SOURCES + korganizerplugin.cpp summarywidget.cpp + ${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub + ${CMAKE_SOURCE_DIR}/korganizer/korganizeriface.stub + LINK common-static kpinterfaces-shared korganizer_calendar-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### libkontact_todoplugin (module) ############ + +tde_add_kpart( libkontact_todoplugin AUTOMOC + SOURCES + todoplugin.cpp todosummarywidget.cpp + ${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub + ${CMAKE_SOURCE_DIR}/korganizer/korganizeriface.stub + LINK common-static kpinterfaces-shared korganizer-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### libkontact_journalplugin (module) ######### + +tde_add_kpart( libkontact_journalplugin AUTOMOC + SOURCES + journalplugin.cpp + ${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub + LINK common-static kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_korgsummary (module) ################## + +tde_add_kpart( kcm_korgsummary AUTOMOC + SOURCES kcmkorgsummary.cpp + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### common (static) ########################### + +tde_add_library( common STATIC_PIC + SOURCES korg_uniqueapp.cpp +) diff --git a/kontact/plugins/newsticker/CMakeLists.txt b/kontact/plugins/newsticker/CMakeLists.txt new file mode 100644 index 000000000..4ea4ed853 --- /dev/null +++ b/kontact/plugins/newsticker/CMakeLists.txt @@ -0,0 +1,46 @@ +################################################# +# +# (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}/../../interfaces + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kcmkontactknt.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES newstickerplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### libkontact_newstickerplugin (module) ###### + +tde_add_kpart( libkontact_newstickerplugin AUTOMOC + SOURCES + newsticker_plugin.cpp summarywidget.cpp summarywidget.skel + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_kontactknt (module) ################### + +tde_add_kpart( kcm_kontactknt AUTOMOC + SOURCES kcmkontactknt.cpp + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/specialdates/CMakeLists.txt b/kontact/plugins/specialdates/CMakeLists.txt new file mode 100644 index 000000000..7bde801d6 --- /dev/null +++ b/kontact/plugins/specialdates/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (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( libkholidays ) +tde_import( korganizer ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces + ${CMAKE_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES specialdatesplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) +install( FILES kcmsdsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libkontact_specialdatesplugin (module) #### + +tde_add_kpart( libkontact_specialdatesplugin AUTOMOC + SOURCES specialdates_plugin.cpp sdsummarywidget.cpp + LINK kpinterfaces-shared kholidays-shared korganizer_calendar-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_sdsummary (module) #################### + +tde_add_kpart( kcm_sdsummary AUTOMOC + SOURCES kcmsdsummary.cpp + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/summary/CMakeLists.txt b/kontact/plugins/summary/CMakeLists.txt new file mode 100644 index 000000000..5e23c91db --- /dev/null +++ b/kontact/plugins/summary/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (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}/../../interfaces + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/certmanager/lib + ${CMAKE_SOURCE_DIR}/libkdepim + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kcmkontactsummary.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES summaryplugin.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) +install( FILES kontactsummary_part.rc DESTINATION ${DATA_INSTALL_DIR}/kontactsummary ) + + +##### libkontact_summaryplugin (module) ######### + +tde_add_kpart( libkontact_summaryplugin AUTOMOC + SOURCES + summaryview_plugin.cpp summaryview_part.cpp dropwidget.cpp + LINK kpinterfaces-shared kdepim-shared kpimidentities-shared kutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_kontactsummary (module) ############### + +tde_add_kpart( kcm_kontactsummary AUTOMOC + SOURCES kcmkontactsummary.cpp + LINK kdeui-shared kutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kontact/plugins/weather/CMakeLists.txt b/kontact/plugins/weather/CMakeLists.txt new file mode 100644 index 000000000..541222d79 --- /dev/null +++ b/kontact/plugins/weather/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}/../../interfaces + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + weatherplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kontact ) + + +##### libkontact_weatherplugin (module) ######### + +tde_add_kpart( libkontact_weatherplugin AUTOMOC + SOURCES + weather_plugin.cpp summarywidget.cpp summarywidget.skel + LINK kpinterfaces-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) -- cgit v1.2.1