From 87b2ea0ac1d482adee9e36165211d09d7e8a602c Mon Sep 17 00:00:00 2001 From: samelian Date: Tue, 22 Mar 2011 21:33:37 +0000 Subject: [PATCH] [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 --- CMakeLists.txt | 8 ++ ConfigureChecks.cmake | 25 ++++++ .../CMakeLists.txt | 9 +-- .../akregator/CMakeLists.txt | 8 +- doc/kaddressbook/CMakeLists.txt | 12 +++ doc/kalarm/CMakeLists.txt | 12 +++ doc/kandy/CMakeLists.txt | 12 +++ doc/karm/CMakeLists.txt | 12 +++ doc/kleopatra/CMakeLists.txt | 12 +++ doc/kmail/CMakeLists.txt | 12 +++ doc/knode/CMakeLists.txt | 12 +++ doc/knotes/CMakeLists.txt | 12 +++ doc/konsolekalendar/CMakeLists.txt | 12 +++ doc/kontact/CMakeLists.txt | 12 +++ doc/korganizer/CMakeLists.txt | 12 +++ doc/korn/CMakeLists.txt | 12 +++ doc/kpilot/CMakeLists.txt | 12 +++ doc/ktnef/CMakeLists.txt | 12 +++ doc/kwatchgnupg/CMakeLists.txt | 12 +++ kaddressbook/xxport/CMakeLists.txt | 2 - kandy/CMakeLists.txt | 2 - kitchensync/CMakeLists.txt | 13 ++++ kitchensync/libqopensync/CMakeLists.txt | 38 ++++++++++ .../libqopensync/ConfigureChecks.cmake | 22 ++++++ kitchensync/src/CMakeLists.txt | 76 +++++++++++++++++++ kitchensync/src/about/CMakeLists.txt | 14 ++++ kitchensync/src/pics/CMakeLists.txt | 13 ++++ kmobile/CMakeLists.txt | 64 ++++++++++++++++ kmobile/devices/CMakeLists.txt | 18 +++++ kmobile/devices/digicam/CMakeLists.txt | 12 +++ kmobile/devices/gammu/CMakeLists.txt | 12 +++ kmobile/devices/gnokii/CMakeLists.txt | 41 ++++++++++ kmobile/devices/pics/CMakeLists.txt | 15 ++++ kmobile/devices/skeleton/CMakeLists.txt | 38 ++++++++++ 34 files changed, 592 insertions(+), 18 deletions(-) rename kaddressbook/xxport/ConfigureChecks.cmake => doc/CMakeLists.txt (57%) rename kandy/ConfigureChecks.cmake => doc/akregator/CMakeLists.txt (53%) create mode 100644 doc/kaddressbook/CMakeLists.txt create mode 100644 doc/kalarm/CMakeLists.txt create mode 100644 doc/kandy/CMakeLists.txt create mode 100644 doc/karm/CMakeLists.txt create mode 100644 doc/kleopatra/CMakeLists.txt create mode 100644 doc/kmail/CMakeLists.txt create mode 100644 doc/knode/CMakeLists.txt create mode 100644 doc/knotes/CMakeLists.txt create mode 100644 doc/konsolekalendar/CMakeLists.txt create mode 100644 doc/kontact/CMakeLists.txt create mode 100644 doc/korganizer/CMakeLists.txt create mode 100644 doc/korn/CMakeLists.txt create mode 100644 doc/kpilot/CMakeLists.txt create mode 100644 doc/ktnef/CMakeLists.txt create mode 100644 doc/kwatchgnupg/CMakeLists.txt create mode 100644 kitchensync/CMakeLists.txt create mode 100644 kitchensync/libqopensync/CMakeLists.txt create mode 100644 kitchensync/libqopensync/ConfigureChecks.cmake create mode 100644 kitchensync/src/CMakeLists.txt create mode 100644 kitchensync/src/about/CMakeLists.txt create mode 100644 kitchensync/src/pics/CMakeLists.txt create mode 100644 kmobile/CMakeLists.txt create mode 100644 kmobile/devices/CMakeLists.txt create mode 100644 kmobile/devices/digicam/CMakeLists.txt create mode 100644 kmobile/devices/gammu/CMakeLists.txt create mode 100644 kmobile/devices/gnokii/CMakeLists.txt create mode 100644 kmobile/devices/pics/CMakeLists.txt create mode 100644 kmobile/devices/skeleton/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d2ee8d0..b31779b6 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 13dfa532..23b631ee 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 similarity index 57% rename from kaddressbook/xxport/ConfigureChecks.cmake rename to doc/CMakeLists.txt index 340842a8..493b1b46 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 similarity index 53% rename from kandy/ConfigureChecks.cmake rename to doc/akregator/CMakeLists.txt index 296191f2..5a7f2556 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 00000000..176b2535 --- /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 00000000..1b51a305 --- /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 00000000..14ee1ef7 --- /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 00000000..25396acc --- /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 00000000..d49d4cab --- /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 00000000..d32c0082 --- /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 00000000..a7364ab0 --- /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 00000000..f924804c --- /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 00000000..45f2706d --- /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 00000000..36ee75f0 --- /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 00000000..479f0a3e --- /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 00000000..a8807b99 --- /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 00000000..a177bb47 --- /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 00000000..22c663ad --- /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 00000000..f97def38 --- /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 17870549..7deea008 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 ff11f9fa..3500f6d7 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 00000000..bff69c7b --- /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 00000000..5b8a0ebf --- /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 00000000..92d32930 --- /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 00000000..a9941195 --- /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 00000000..1381982b --- /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 00000000..aeb0522e --- /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 00000000..e39c161d --- /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 00000000..2f39c420 --- /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 00000000..9aee42c1 --- /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 00000000..9372166e --- /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 00000000..140360e1 --- /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 00000000..10c29836 --- /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 00000000..c1f902cf --- /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} +)