summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-22 21:33:37 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-22 21:33:37 +0000
commit87b2ea0ac1d482adee9e36165211d09d7e8a602c (patch)
treea67e69523e57a9f5ab8afb0276b753eab060806b
parent75f32756ec8e53a0f254866c0d7120b078ce3b6e (diff)
downloadtdepim-87b2ea0ac1d482adee9e36165211d09d7e8a602c.tar.gz
tdepim-87b2ea0ac1d482adee9e36165211d09d7e8a602c.zip
[kdepim] cmake port for kmobile, kitchensync, and doc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225672 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt8
-rw-r--r--ConfigureChecks.cmake25
-rw-r--r--doc/CMakeLists.txt (renamed from kaddressbook/xxport/ConfigureChecks.cmake)9
-rw-r--r--doc/akregator/CMakeLists.txt (renamed from kandy/ConfigureChecks.cmake)8
-rw-r--r--doc/kaddressbook/CMakeLists.txt12
-rw-r--r--doc/kalarm/CMakeLists.txt12
-rw-r--r--doc/kandy/CMakeLists.txt12
-rw-r--r--doc/karm/CMakeLists.txt12
-rw-r--r--doc/kleopatra/CMakeLists.txt12
-rw-r--r--doc/kmail/CMakeLists.txt12
-rw-r--r--doc/knode/CMakeLists.txt12
-rw-r--r--doc/knotes/CMakeLists.txt12
-rw-r--r--doc/konsolekalendar/CMakeLists.txt12
-rw-r--r--doc/kontact/CMakeLists.txt12
-rw-r--r--doc/korganizer/CMakeLists.txt12
-rw-r--r--doc/korn/CMakeLists.txt12
-rw-r--r--doc/kpilot/CMakeLists.txt12
-rw-r--r--doc/ktnef/CMakeLists.txt12
-rw-r--r--doc/kwatchgnupg/CMakeLists.txt12
-rw-r--r--kaddressbook/xxport/CMakeLists.txt2
-rw-r--r--kandy/CMakeLists.txt2
-rw-r--r--kitchensync/CMakeLists.txt13
-rw-r--r--kitchensync/libqopensync/CMakeLists.txt38
-rw-r--r--kitchensync/libqopensync/ConfigureChecks.cmake22
-rw-r--r--kitchensync/src/CMakeLists.txt76
-rw-r--r--kitchensync/src/about/CMakeLists.txt14
-rw-r--r--kitchensync/src/pics/CMakeLists.txt13
-rw-r--r--kmobile/CMakeLists.txt64
-rw-r--r--kmobile/devices/CMakeLists.txt18
-rw-r--r--kmobile/devices/digicam/CMakeLists.txt12
-rw-r--r--kmobile/devices/gammu/CMakeLists.txt12
-rw-r--r--kmobile/devices/gnokii/CMakeLists.txt41
-rw-r--r--kmobile/devices/pics/CMakeLists.txt15
-rw-r--r--kmobile/devices/skeleton/CMakeLists.txt38
34 files changed, 592 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d2ee8d0f..b31779b68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,6 +106,11 @@ option( BUILD_KARM "Build karm" ${BUILD_ALL} )
option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} )
option( BUILD_KANDY "Build kandy" ${BUILD_ALL} )
option( BUILD_KNODE "Build knode" ${BUILD_ALL} )
+option( BUILD_KMOBILE "Build kmobile" ${BUILD_ALL} )
+option( BUILD_DOC "Build doc" ${BUILD_ALL} )
+
+# deprecated
+option( BUILD_KITCHENSYNC "Build kitchensync" OFF )
##### configure checks ##########################
@@ -173,6 +178,9 @@ tde_conditional_add_subdirectory( BUILD_KARM karm )
tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins )
tde_conditional_add_subdirectory( BUILD_KANDY kandy )
tde_conditional_add_subdirectory( BUILD_KNODE knode )
+tde_conditional_add_subdirectory( BUILD_KMOBILE kmobile )
+tde_conditional_add_subdirectory( BUILD_KITCHENSYNC kitchensync )
+tde_conditional_add_subdirectory( BUILD_DOC doc )
##### write configure files #####################
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 13dfa5327..23b631ee1 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -32,6 +32,31 @@ if( BUILD_INDEXLIB OR BUILD_KMAIL )
endif( )
+if( BUILD_KMOBILE )
+ # FIXME not checked because Gentoo don't provide baudboy.h
+ check_include_file( "baudboy.h" HAVE_BAUDBOY_H )
+endif( )
+
+
+if( BUILD_KANDY OR (BUILD_KMOBILE AND NOT HAVE_BAUDBOY_H) )
+ check_include_file( "lockdev.h" HAVE_LOCKDEV_H )
+ if( HAVE_LOCKDEV_H )
+ check_library_exists( lockdev dev_unlock "" HAVE_LOCKDEV )
+ if( HAVE_LOCKDEV )
+ set( LOCKDEV_LIBRARY lockdev CACHE INTERNAL "" FORCE )
+ endif( )
+ endif( )
+endif( )
+
+
+if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) )
+ pkg_search_module( GNOKII gnokii )
+ if( NOT GNOKII_FOUND )
+ tde_message_fatal( "gnokii are requested, but was not found on your system" )
+ endif( )
+endif( )
+
+
if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK )
if( NOT HAVE_GPGME_0_4_BRANCH )
diff --git a/kaddressbook/xxport/ConfigureChecks.cmake b/doc/CMakeLists.txt
index 340842a88..493b1b46e 100644
--- a/kaddressbook/xxport/ConfigureChecks.cmake
+++ b/doc/CMakeLists.txt
@@ -9,10 +9,5 @@
#
#################################################
-# 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( )
+tde_auto_add_subdirectories()
+
diff --git a/kandy/ConfigureChecks.cmake b/doc/akregator/CMakeLists.txt
index 296191f27..5a7f2556c 100644
--- a/kandy/ConfigureChecks.cmake
+++ b/doc/akregator/CMakeLists.txt
@@ -9,10 +9,4 @@
#
#################################################
-check_include_file( "lockdev.h" HAVE_LOCKDEV_H )
-if( HAVE_LOCKDEV_H )
- check_library_exists( lockdev dev_unlock "" HAVE_LOCKDEV )
- if( HAVE_LOCKDEV )
- set( LOCKDEV_LIBRARY lockdev CACHE INTERNAL "" FORCE )
- endif( )
-endif( )
+tde_create_handbook( DESTINATION akregator )
diff --git a/doc/kaddressbook/CMakeLists.txt b/doc/kaddressbook/CMakeLists.txt
new file mode 100644
index 000000000..176b25356
--- /dev/null
+++ b/doc/kaddressbook/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_create_handbook( DESTINATION kaddressbook )
diff --git a/doc/kalarm/CMakeLists.txt b/doc/kalarm/CMakeLists.txt
new file mode 100644
index 000000000..1b51a3058
--- /dev/null
+++ b/doc/kalarm/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_create_handbook( DESTINATION kalarm )
diff --git a/doc/kandy/CMakeLists.txt b/doc/kandy/CMakeLists.txt
new file mode 100644
index 000000000..14ee1ef7c
--- /dev/null
+++ b/doc/kandy/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_create_handbook( DESTINATION kandy )
diff --git a/doc/karm/CMakeLists.txt b/doc/karm/CMakeLists.txt
new file mode 100644
index 000000000..25396acc1
--- /dev/null
+++ b/doc/karm/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_create_handbook( DESTINATION karm )
diff --git a/doc/kleopatra/CMakeLists.txt b/doc/kleopatra/CMakeLists.txt
new file mode 100644
index 000000000..d49d4cab2
--- /dev/null
+++ b/doc/kleopatra/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_create_handbook( DESTINATION kleopatra )
diff --git a/doc/kmail/CMakeLists.txt b/doc/kmail/CMakeLists.txt
new file mode 100644
index 000000000..d32c00822
--- /dev/null
+++ b/doc/kmail/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_create_handbook( DESTINATION kmail )
diff --git a/doc/knode/CMakeLists.txt b/doc/knode/CMakeLists.txt
new file mode 100644
index 000000000..a7364ab0e
--- /dev/null
+++ b/doc/knode/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_create_handbook( DESTINATION knode )
diff --git a/doc/knotes/CMakeLists.txt b/doc/knotes/CMakeLists.txt
new file mode 100644
index 000000000..f924804c8
--- /dev/null
+++ b/doc/knotes/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_create_handbook( DESTINATION knotes )
diff --git a/doc/konsolekalendar/CMakeLists.txt b/doc/konsolekalendar/CMakeLists.txt
new file mode 100644
index 000000000..45f2706d3
--- /dev/null
+++ b/doc/konsolekalendar/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_create_handbook( DESTINATION konsolekalendar )
diff --git a/doc/kontact/CMakeLists.txt b/doc/kontact/CMakeLists.txt
new file mode 100644
index 000000000..36ee75f0c
--- /dev/null
+++ b/doc/kontact/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_create_handbook( DESTINATION kontact )
diff --git a/doc/korganizer/CMakeLists.txt b/doc/korganizer/CMakeLists.txt
new file mode 100644
index 000000000..479f0a3e2
--- /dev/null
+++ b/doc/korganizer/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_create_handbook( DESTINATION korganizer )
diff --git a/doc/korn/CMakeLists.txt b/doc/korn/CMakeLists.txt
new file mode 100644
index 000000000..a8807b997
--- /dev/null
+++ b/doc/korn/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_create_handbook( DESTINATION korn )
diff --git a/doc/kpilot/CMakeLists.txt b/doc/kpilot/CMakeLists.txt
new file mode 100644
index 000000000..a177bb47c
--- /dev/null
+++ b/doc/kpilot/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_create_handbook( DESTINATION kpilot )
diff --git a/doc/ktnef/CMakeLists.txt b/doc/ktnef/CMakeLists.txt
new file mode 100644
index 000000000..22c663ad8
--- /dev/null
+++ b/doc/ktnef/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_create_handbook( DESTINATION ktnef )
diff --git a/doc/kwatchgnupg/CMakeLists.txt b/doc/kwatchgnupg/CMakeLists.txt
new file mode 100644
index 000000000..f97def380
--- /dev/null
+++ b/doc/kwatchgnupg/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_create_handbook( DESTINATION kwatchgnupg )
diff --git a/kaddressbook/xxport/CMakeLists.txt b/kaddressbook/xxport/CMakeLists.txt
index 178705495..7deea0085 100644
--- a/kaddressbook/xxport/CMakeLists.txt
+++ b/kaddressbook/xxport/CMakeLists.txt
@@ -9,8 +9,6 @@
#
#################################################
-include( ConfigureChecks.cmake )
-
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
diff --git a/kandy/CMakeLists.txt b/kandy/CMakeLists.txt
index ff11f9fa2..3500f6d72 100644
--- a/kandy/CMakeLists.txt
+++ b/kandy/CMakeLists.txt
@@ -9,7 +9,5 @@
#
#################################################
-include( ConfigureChecks.cmake )
-
add_subdirectory( src )
add_subdirectory( profiles )
diff --git a/kitchensync/CMakeLists.txt b/kitchensync/CMakeLists.txt
new file mode 100644
index 000000000..bff69c7b9
--- /dev/null
+++ b/kitchensync/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (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( libqopensync )
+add_subdirectory( src )
diff --git a/kitchensync/libqopensync/CMakeLists.txt b/kitchensync/libqopensync/CMakeLists.txt
new file mode 100644
index 000000000..5b8a0ebfe
--- /dev/null
+++ b/kitchensync/libqopensync/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( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${OSENGINE_INCLUDE_DIRS}
+ ${OPENSYNC_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### qopensync (shared) ########################
+
+tde_add_library( qopensync SHARED AUTOMOC
+ SOURCES
+ callbackhandler.cpp conversion.cpp engine.cpp environment.cpp
+ filter.cpp group.cpp member.cpp plugin.cpp result.cpp syncmapping.cpp
+ syncupdates.cpp syncchange.cpp
+ VERSION 0.0.0
+ LINK kdeui-shared ${OSENGINE_LIBRARIES} ${OPENSYNC_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kitchensync/libqopensync/ConfigureChecks.cmake b/kitchensync/libqopensync/ConfigureChecks.cmake
new file mode 100644
index 000000000..92d329301
--- /dev/null
+++ b/kitchensync/libqopensync/ConfigureChecks.cmake
@@ -0,0 +1,22 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# NOTE is needed libopensync-0.22
+
+pkg_search_module( OPENSYNC opensync-1.0 )
+if( NOT OPENSYNC_FOUND )
+ tde_message_fatal( "opensync-1.0 is requested, but was not found on your system" )
+endif( )
+
+pkg_search_module( OSENGINE osengine-1.0 )
+if( NOT OSENGINE_FOUND )
+ tde_message_fatal( "osengine-1.0 is requested, but was not found on your system" )
+endif( )
diff --git a/kitchensync/src/CMakeLists.txt b/kitchensync/src/CMakeLists.txt
new file mode 100644
index 000000000..a9941195b
--- /dev/null
+++ b/kitchensync/src/CMakeLists.txt
@@ -0,0 +1,76 @@
+#################################################
+#
+# (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( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+tde_import( libkdepim )
+
+add_subdirectory( about )
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kitchensync.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kitchensyncui.rc kitchensync_part.rc DESTINATION ${DATA_INSTALL_DIR}/kitchensync )
+
+
+##### libkitchensyncpart (module) ###############
+
+tde_add_kpart( libkitchensyncpart AUTOMOC
+ SOURCES part.cpp
+ LINK kitchensync-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+##### kitchensync (executable) ##################
+
+tde_add_executable( kitchensync AUTOMOC
+ SOURCES main.cpp mainwindow.cpp
+ LINK kitchensync-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kitchensync (shared) ######################
+
+tde_add_library( kitchensync SHARED AUTOMOC
+ SOURCES
+ aboutpage.cpp mainwidget.cpp groupconfigdialog.cpp groupconfig.cpp
+ groupitem.cpp groupview.cpp memberconfig.cpp syncprocess.cpp
+ syncprocessmanager.cpp connectionwidgets.cpp pluginpicker.cpp
+ configgui.cpp configguiblank.cpp configguifile.cpp memberinfo.cpp
+ groupconfigcommon.cpp kwidgetlist.cpp configguipalm.cpp
+ conflictdialog.cpp singleconflictdialog.cpp addresseediffalgo.cpp
+ calendardiffalgo.cpp htmldiffalgodisplay.cpp genericdiffalgo.cpp
+ multiconflictdialog.cpp configguiirmc.cpp configguisyncmlobex.cpp
+ configguisyncmlhttp.cpp configguiopie.cpp configguignokii.cpp
+ configguigcalendar.cpp configguildap.cpp configguigpe.cpp
+ configguijescs.cpp configguievo2.cpp configguimoto.cpp
+ configguisynce.cpp configguisunbird.cpp
+ VERSION 0.0.0
+ LINK qopensync-shared kdepim-shared khtml-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kitchensync/src/about/CMakeLists.txt b/kitchensync/src/about/CMakeLists.txt
new file mode 100644
index 000000000..1381982b1
--- /dev/null
+++ b/kitchensync/src/about/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (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
+ top-right-kitchensync.png main.html kitchensync.css
+ DESTINATION ${DATA_INSTALL_DIR}/kitchensync/about )
diff --git a/kitchensync/src/pics/CMakeLists.txt b/kitchensync/src/pics/CMakeLists.txt
new file mode 100644
index 000000000..aeb0522e0
--- /dev/null
+++ b/kitchensync/src/pics/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (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( kitchensync )
+tde_install_icons( hotsync mobile_phone DESTINATION ${DATA_INSTALL_DIR}/kitchensync/icons )
diff --git a/kmobile/CMakeLists.txt b/kmobile/CMakeLists.txt
new file mode 100644
index 000000000..e39c161dc
--- /dev/null
+++ b/kmobile/CMakeLists.txt
@@ -0,0 +1,64 @@
+#################################################
+#
+# (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( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+
+add_subdirectory( devices )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( kmobile )
+install( FILES kmobile.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES libkmobile.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+install( FILES kmobileui.rc DESTINATION ${DATA_INSTALL_DIR}/kmobile )
+
+
+##### kmobile (executable) ######################
+
+tde_add_executable( kmobile AUTOMOC
+ SOURCES
+ main.cpp kmobile.cpp kmobileview.cpp kmobileitem.cpp pref.cpp
+ kmobileiface.skel kmobile_selectiondialog.ui systemtray.cpp
+ LINK kmobiledevice-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kmobiledevice (shared) ####################
+
+tde_add_library( kmobiledevice SHARED AUTOMOC
+ SOURCES kmobiledevice.cpp
+ LINK kcal-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kmobileclient (shared) ####################
+
+tde_add_library( kmobileclient SHARED AUTOMOC
+ SOURCES kmobileclient.cpp
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kmobile/devices/CMakeLists.txt b/kmobile/devices/CMakeLists.txt
new file mode 100644
index 000000000..2f39c420d
--- /dev/null
+++ b/kmobile/devices/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
+#
+#################################################
+
+# FIXME gnokii support seems outdated, cannot be compiled
+
+add_subdirectory( pics )
+add_subdirectory( skeleton )
+# tde_conditional_add_subdirectory( WITH_GNOKII gnokii )
+add_subdirectory( digicam )
+add_subdirectory( gammu )
diff --git a/kmobile/devices/digicam/CMakeLists.txt b/kmobile/devices/digicam/CMakeLists.txt
new file mode 100644
index 000000000..9aee42c11
--- /dev/null
+++ b/kmobile/devices/digicam/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
+#
+#################################################
+
+install( FILES libkmobile_digicam.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/kmobile/devices/gammu/CMakeLists.txt b/kmobile/devices/gammu/CMakeLists.txt
new file mode 100644
index 000000000..9372166e3
--- /dev/null
+++ b/kmobile/devices/gammu/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
+#
+#################################################
+
+install( FILES libkmobile_gammu.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
diff --git a/kmobile/devices/gnokii/CMakeLists.txt b/kmobile/devices/gnokii/CMakeLists.txt
new file mode 100644
index 000000000..140360e1f
--- /dev/null
+++ b/kmobile/devices/gnokii/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (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}/../..
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GNOKII_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ libkmobile_gnokii.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libkmobile_gnokii (module) ################
+
+tde_add_kpart( libkmobile_gnokii AUTOMOC
+ SOURCES
+ gnokii_mobile.cpp gnokiiconfigui.ui gnokiiconfig.cpp
+ LINK kmobiledevice-shared kcal-shared ${GNOKII_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kmobile/devices/pics/CMakeLists.txt b/kmobile/devices/pics/CMakeLists.txt
new file mode 100644
index 000000000..10c298368
--- /dev/null
+++ b/kmobile/devices/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
+ mobile_phone.png mobile_organizer.png mobile_camera.png
+ mobile_musicplayer.png mobile_unknown.png
+ DESTINATION ${ICON_INSTALL_DIR}/default.kde/32x32/devices )
diff --git a/kmobile/devices/skeleton/CMakeLists.txt b/kmobile/devices/skeleton/CMakeLists.txt
new file mode 100644
index 000000000..c1f902cf8
--- /dev/null
+++ b/kmobile/devices/skeleton/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}/../..
+ ${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ libkmobile_skeleton.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libkmobile_skeleton (module) ##############
+
+tde_add_kpart( libkmobile_skeleton AUTOMOC
+ SOURCES skeleton.cpp
+ LINK kmobiledevice-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)