summaryrefslogtreecommitdiffstats
path: root/libkdepim
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-05 23:54:57 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-05 23:54:57 +0000
commitb67ece773ccb72aafa48a4117a9aae82531e3aaf (patch)
tree9dd91fcd5599ae865bea43313ed7068eb4ec0177 /libkdepim
parenta21c1c9b1dca09b9ab3a56d60e6f4c7a253689f8 (diff)
downloadtdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.tar.gz
tdepim-b67ece773ccb72aafa48a4117a9aae82531e3aaf.zip
[kdepim]: initial cmake support for following subpackages: akregator, certmanager, kaddressbook, kalarm, kioslaves, kmail, ktnef, libemailfunctions, libkcal, libkdenetwork, libkdepim, libkmime, libkpgp, libkpimidentities, libksieve, mimelib
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1223912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim')
-rw-r--r--libkdepim/CMakeLists.txt108
-rw-r--r--libkdepim/ConfigureChecks.cmake10
-rw-r--r--libkdepim/about/CMakeLists.txt19
-rw-r--r--libkdepim/icons/CMakeLists.txt12
-rw-r--r--libkdepim/kpartsdesignerplugin/CMakeLists.txt32
-rw-r--r--libkdepim/pics/CMakeLists.txt15
6 files changed, 196 insertions, 0 deletions
diff --git a/libkdepim/CMakeLists.txt b/libkdepim/CMakeLists.txt
new file mode 100644
index 000000000..621c39574
--- /dev/null
+++ b/libkdepim/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
+#
+#################################################
+
+project( libkdepim )
+
+include( ConfigureChecks.cmake )
+
+tde_import( libkmime )
+tde_import( libkcal )
+tde_import( ktnef )
+
+add_subdirectory( icons )
+add_subdirectory( pics )
+add_subdirectory( kpartsdesignerplugin )
+add_subdirectory( about )
+
+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}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kdepimmacros.h kpimprefs.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+##### other data ################################
+
+install( FILES pimemoticons.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+
+
+##### kdepimwidgets (module) ####################
+
+add_custom_command( OUTPUT kdepimwidgets.cpp
+ COMMAND
+ ${KDE3_MAKEKDEWIDGETS_EXECUTABLE}
+ -o kdepimwidgets.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/kdepim.widgets
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/kdepim.widgets )
+
+set_source_files_properties( kdepimwidgets.cpp PROPERTIES COMPILE_FLAGS "-DQT_PLUGIN" )
+
+tde_add_kpart( kdepimwidgets
+ SOURCES kdepimwidgets.cpp
+ LINK kdepim-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kdepim (shared) ###########################
+
+set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
+
+tde_add_library( kdepim SHARED AUTOMOC
+ SOURCES
+ ktimeedit.cpp alarmclient.cpp kprefsdialog.cpp kpimprefs.cpp
+ categoryselectdialog_base.ui categoryselectdialog.cpp
+ categoryeditdialog_base.ui categoryeditdialog.cpp kdateedit.cpp
+ kimportdialog.cpp kvcarddrag.cpp sidebarextension.cpp
+ infoextension.cpp addressesdialog.cpp addresspicker.ui
+ addresseeview.cpp maillistdrag.cpp interfaces/MailTransportServiceIface.skel
+ interfaces/AddressBookServiceIface.skel kconfigpropagator.cpp kconfigwizard.cpp
+ weaver.cpp weaverextensions.cpp weaverlogger.cpp pluginloaderbase.cpp
+ addresseelineedit.cpp addresseelineedit.skel kdatepickerpopup.cpp
+ kfileio.cpp clicklineedit.cpp configmanager.cpp collectingprocess.cpp
+ ldapclient.cpp overlaywidget.cpp progressmanager.cpp progressdialog.cpp
+ statusbarprogresswidget.cpp ssllabel.cpp completionordereditor.cpp
+ resourceabc.cpp diffalgo.cpp addresseediffalgo.cpp calendardiffalgo.cpp
+ htmldiffalgodisplay.cpp ldapsearchdialog.cpp broadcaststatus.cpp
+ kresourceprefs.cpp kpixmapregionselectorwidget.cpp
+ kpixmapregionselectordialog.cpp kabcresourcecached.cpp
+ kxface.cpp kaccount.cpp kaddrbook.cpp kfoldertree.cpp kregexp3.cpp
+ kscoring.cpp kscoringeditor.cpp ksubscription.cpp kwidgetlister.cpp
+ linklocator.cpp qutf7codec.cpp recentaddresses.cpp spellingfilter.cpp
+ addresseeselector.cpp addresseeemailselection.cpp designerfields.cpp
+ kcmdesignerfields.cpp embeddedurlpage.cpp kincidencechooser.cpp
+ groupwarejob.cpp pimemoticons.kcfgc krsqueezedtextlabel.cpp
+ csshelper.cpp distributionlist.cpp kpimurlrequesterdlg.cpp
+ sendsmsdialog.cpp kmailcompletion.cpp
+ VERSION 1.0.0
+ LINK kcal-shared kimproxy-shared kparts-shared qui
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### install import cmake modules ###############
+
+tde_install_export( )
diff --git a/libkdepim/ConfigureChecks.cmake b/libkdepim/ConfigureChecks.cmake
new file mode 100644
index 000000000..96e1e621a
--- /dev/null
+++ b/libkdepim/ConfigureChecks.cmake
@@ -0,0 +1,10 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
diff --git a/libkdepim/about/CMakeLists.txt b/libkdepim/about/CMakeLists.txt
new file mode 100644
index 000000000..8fa99df96
--- /dev/null
+++ b/libkdepim/about/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ bar-bottom-left.png bar-top-right.png bar-bottom-middle.png bottom-left.png
+ box-middle-left.png top-left.png bar-bottom-right.png bottom-middle.png
+ box-middle-right.png top-middle.png bar-middle-left.png bottom-right.png
+ box-top-left.png bar-middle-right.png box-bottom-left.png box-top-middle.png
+ bar-top-left.png box-bottom-middle.png box-top-right.png bar-top-middle.png
+ box-bottom-right.png kde_infopage.css kde_infopage_rtl.css
+ DESTINATION ${DATA_INSTALL_DIR}/libkdepim/about )
diff --git a/libkdepim/icons/CMakeLists.txt b/libkdepim/icons/CMakeLists.txt
new file mode 100644
index 000000000..189a3a200
--- /dev/null
+++ b/libkdepim/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()
diff --git a/libkdepim/kpartsdesignerplugin/CMakeLists.txt b/libkdepim/kpartsdesignerplugin/CMakeLists.txt
new file mode 100644
index 000000000..2d7f5611f
--- /dev/null
+++ b/libkdepim/kpartsdesignerplugin/CMakeLists.txt
@@ -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
+#
+#################################################
+
+add_definitions( -DQT_PLUGIN )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kpartsdesignerplugin (module) #############
+
+tde_add_kpart( kpartsdesignerplugin AUTOMOC
+ SOURCES kpartsdesignerplugin.cpp
+ LINK kparts-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/libkdepim/pics/CMakeLists.txt b/libkdepim/pics/CMakeLists.txt
new file mode 100644
index 000000000..04f64a51a
--- /dev/null
+++ b/libkdepim/pics/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ addresseelineedit.png clicklineedit.png
+ kdateedit.png ktimeedit.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdepimwidgets/pics )