summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport
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 /kaddressbook/xxport
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 'kaddressbook/xxport')
-rw-r--r--kaddressbook/xxport/CMakeLists.txt132
-rw-r--r--kaddressbook/xxport/ConfigureChecks.cmake18
2 files changed, 150 insertions, 0 deletions
diff --git a/kaddressbook/xxport/CMakeLists.txt b/kaddressbook/xxport/CMakeLists.txt
new file mode 100644
index 000000000..6d61f97e3
--- /dev/null
+++ b/kaddressbook/xxport/CMakeLists.txt
@@ -0,0 +1,132 @@
+#################################################
+#
+# (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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kaddressbook
+ ${CMAKE_SOURCE_DIR}/kaddressbook/interfaces
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GNOKII_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+if( WITH_GNOKII )
+ set( GNOKII_DESKTOP gnokii_xxport.desktop )
+ set( GNOKII_RCFILE gnokii_xxportui.rc )
+endif( )
+
+
+##### other data ################################
+
+install( FILES
+ csv_xxport.desktop vcard_xxport.desktop kde2_xxport.desktop
+ bookmark_xxport.desktop eudora_xxport.desktop ldif_xxport.desktop
+ opera_xxport.desktop pab_xxport.desktop ${GNOKII_DESKTOP}
+ DESTINATION ${SERVICES_INSTALL_DIR}/kaddressbook )
+
+install( FILES
+ csv_xxportui.rc vcard_xxportui.rc kde2_xxportui.rc bookmark_xxportui.rc
+ eudora_xxportui.rc ldif_xxportui.rc opera_xxportui.rc pab_xxportui.rc
+ ${GNOKII_RCFILE}
+ DESTINATION ${DATA_INSTALL_DIR}/kaddressbook )
+
+
+##### libkaddrbk_csv_xxport (module) ############
+
+tde_add_kpart( libkaddrbk_csv_xxport AUTOMOC
+ SOURCES csv_xxport.cpp csvimportdialog.cpp dateparser.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_vcard_xxport (module) ##########
+
+tde_add_kpart( libkaddrbk_vcard_xxport AUTOMOC
+ SOURCES vcard_xxport.cpp
+ LINK kaddressbook-shared qgpgme-shared kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_kde2_xxport (module) ###########
+
+tde_add_kpart( libkaddrbk_kde2_xxport AUTOMOC
+ SOURCES kde2_xxport.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_bookmark_xxport (module) #######
+
+tde_add_kpart( libkaddrbk_bookmark_xxport AUTOMOC
+ SOURCES bookmark_xxport.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_eudora_xxport (module) #########
+
+tde_add_kpart( libkaddrbk_eudora_xxport AUTOMOC
+ SOURCES eudora_xxport.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_ldif_xxport (module) ###########
+
+tde_add_kpart( libkaddrbk_ldif_xxport AUTOMOC
+ SOURCES ldif_xxport.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_opera_xxport (module) ##########
+
+tde_add_kpart( libkaddrbk_opera_xxport AUTOMOC
+ SOURCES opera_xxport.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_pab_xxport (module) ############
+
+tde_add_kpart( libkaddrbk_pab_xxport AUTOMOC
+ SOURCES pab_xxport.cpp pab_mapihd.cpp pab_pablib.cpp
+ LINK kabinterfaces-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkaddrbk_gnokii_xxport (module) #########
+
+# FIXME gnokii suport are not ready
+if( WITH_GNOKII )
+ tde_add_kpart( libkaddrbk_gnokii_xxport AUTOMOC
+ SOURCES gnokii_xxport.cpp
+ LINK kabinterfaces-shared ${GNOKII_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+endif( )
diff --git a/kaddressbook/xxport/ConfigureChecks.cmake b/kaddressbook/xxport/ConfigureChecks.cmake
new file mode 100644
index 000000000..340842a88
--- /dev/null
+++ b/kaddressbook/xxport/ConfigureChecks.cmake
@@ -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
+#
+#################################################
+
+# gnokii
+if( WITH_GNOKII )
+ pkg_search_module( GNOKII gnokii )
+ if( NOT GNOKII_FOUND )
+ tde_message_fatal( "gnokii are requested, but was not found on your system" )
+ endif( )
+endif( )