Browse Source

[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
tags/v3.5.13
samelian 9 years ago
parent
commit
b67ece773c
87 changed files with 3281 additions and 0 deletions
  1. +129
    -0
      CMakeLists.txt
  2. +63
    -0
      ConfigureChecks.cmake
  3. +12
    -0
      akregator/CMakeLists.txt
  4. +122
    -0
      akregator/src/CMakeLists.txt
  5. +14
    -0
      akregator/src/about/CMakeLists.txt
  6. +26
    -0
      akregator/src/librss/CMakeLists.txt
  7. +43
    -0
      akregator/src/mk4storage/CMakeLists.txt
  8. +12
    -0
      akregator/src/mk4storage/metakit/CMakeLists.txt
  9. +27
    -0
      akregator/src/mk4storage/metakit/src/CMakeLists.txt
  10. +16
    -0
      akregator/src/pics/CMakeLists.txt
  11. +57
    -0
      certmanager/CMakeLists.txt
  12. +22
    -0
      certmanager/ConfigureChecks.cmake
  13. +55
    -0
      certmanager/conf/CMakeLists.txt
  14. +47
    -0
      certmanager/kwatchgnupg/CMakeLists.txt
  15. +52
    -0
      certmanager/lib/CMakeLists.txt
  16. +13
    -0
      certmanager/lib/backends/CMakeLists.txt
  17. +33
    -0
      certmanager/lib/backends/chiasmus/CMakeLists.txt
  18. +15
    -0
      certmanager/lib/backends/chiasmus/ConfigureChecks.cmake
  19. +38
    -0
      certmanager/lib/backends/qgpgme/CMakeLists.txt
  20. +48
    -0
      certmanager/lib/kleo/CMakeLists.txt
  21. +16
    -0
      certmanager/lib/pics/CMakeLists.txt
  22. +46
    -0
      certmanager/lib/ui/CMakeLists.txt
  23. +46
    -0
      config.h.cmake
  24. +109
    -0
      kaddressbook/CMakeLists.txt
  25. +26
    -0
      kaddressbook/common/CMakeLists.txt
  26. +14
    -0
      kaddressbook/csv-templates/CMakeLists.txt
  27. +51
    -0
      kaddressbook/editors/CMakeLists.txt
  28. +12
    -0
      kaddressbook/editors/icons/CMakeLists.txt
  29. +17
    -0
      kaddressbook/editors/protocols/CMakeLists.txt
  30. +59
    -0
      kaddressbook/features/CMakeLists.txt
  31. +50
    -0
      kaddressbook/interfaces/CMakeLists.txt
  32. +61
    -0
      kaddressbook/kcmconfigs/CMakeLists.txt
  33. +13
    -0
      kaddressbook/pics/CMakeLists.txt
  34. +31
    -0
      kaddressbook/printing/CMakeLists.txt
  35. +33
    -0
      kaddressbook/thumbnailcreator/CMakeLists.txt
  36. +65
    -0
      kaddressbook/views/CMakeLists.txt
  37. +132
    -0
      kaddressbook/xxport/CMakeLists.txt
  38. +18
    -0
      kaddressbook/xxport/ConfigureChecks.cmake
  39. +77
    -0
      kalarm/CMakeLists.txt
  40. +46
    -0
      kalarm/kalarmd/CMakeLists.txt
  41. +32
    -0
      kalarm/lib/CMakeLists.txt
  42. +12
    -0
      kalarm/pixmaps/CMakeLists.txt
  43. +16
    -0
      kioslaves/CMakeLists.txt
  44. +22
    -0
      kioslaves/ConfigureChecks.cmake
  45. +44
    -0
      kioslaves/imap4/CMakeLists.txt
  46. +36
    -0
      kioslaves/mbox/CMakeLists.txt
  47. +35
    -0
      kioslaves/sieve/CMakeLists.txt
  48. +225
    -0
      kmail/CMakeLists.txt
  49. +23
    -0
      kmail/ConfigureChecks.cmake
  50. +14
    -0
      kmail/about/CMakeLists.txt
  51. +14
    -0
      kmail/avscripts/CMakeLists.txt
  52. +15
    -0
      kmail/interfaces/CMakeLists.txt
  53. +30
    -0
      kmail/pics/CMakeLists.txt
  54. +12
    -0
      kmail/pics/icons/CMakeLists.txt
  55. +18
    -0
      kmail/profiles/CMakeLists.txt
  56. +19
    -0
      ktnef/CMakeLists.txt
  57. +17
    -0
      ktnef/ConfigureChecks.cmake
  58. +43
    -0
      ktnef/gui/CMakeLists.txt
  59. +13
    -0
      ktnef/gui/pics/CMakeLists.txt
  60. +16
    -0
      ktnef/ktnef/CMakeLists.txt
  61. +35
    -0
      ktnef/lib/CMakeLists.txt
  62. +38
    -0
      libemailfunctions/CMakeLists.txt
  63. +92
    -0
      libkcal/CMakeLists.txt
  64. +15
    -0
      libkcal/ConfigureChecks.cmake
  65. +14
    -0
      libkcal/versit/CMakeLists.txt
  66. +20
    -0
      libkdenetwork/CMakeLists.txt
  67. +54
    -0
      libkdenetwork/gpgmepp/CMakeLists.txt
  68. +14
    -0
      libkdenetwork/gpgmepp/interfaces/CMakeLists.txt
  69. +41
    -0
      libkdenetwork/qgpgme/CMakeLists.txt
  70. +108
    -0
      libkdepim/CMakeLists.txt
  71. +10
    -0
      libkdepim/ConfigureChecks.cmake
  72. +19
    -0
      libkdepim/about/CMakeLists.txt
  73. +12
    -0
      libkdepim/icons/CMakeLists.txt
  74. +32
    -0
      libkdepim/kpartsdesignerplugin/CMakeLists.txt
  75. +15
    -0
      libkdepim/pics/CMakeLists.txt
  76. +48
    -0
      libkmime/CMakeLists.txt
  77. +1
    -0
      libkmime/ConfigureChecks.cmake
  78. +47
    -0
      libkpgp/CMakeLists.txt
  79. +18
    -0
      libkpgp/pics/CMakeLists.txt
  80. +47
    -0
      libkpimidentities/CMakeLists.txt
  81. +11
    -0
      libkpimidentities/ConfigureChecks.cmake
  82. +39
    -0
      libksieve/CMakeLists.txt
  83. +14
    -0
      libksieve/ksieve/CMakeLists.txt
  84. +25
    -0
      libksieve/parser/CMakeLists.txt
  85. +25
    -0
      libksieve/shared/CMakeLists.txt
  86. +46
    -0
      mimelib/CMakeLists.txt
  87. +19
    -0
      mimelib/mimelib/CMakeLists.txt

+ 129
- 0
CMakeLists.txt View File

@@ -0,0 +1,129 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

cmake_minimum_required( VERSION 2.6 )


##### general package setup #####################

project( kdepim )
set( PACKAGE kdepim )
set( VERSION "3.5.13" )


##### include essential cmake modules ###########

include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckTypeSize )
# include( CheckCSourceRuns )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
include( CheckLibraryExists )
# include( CheckFunctionExists )
# include( CheckStructHasMember )


##### include our cmake modules #################

set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )


##### setup install paths #######################

include( TDESetupPaths )
tde_setup_paths( )


##### optional stuff ############################

option( WITH_ARTS "Enable aRts support" OFF )
# option( WITH_LDAP "Enable LDAP support" OFF )
option( WITH_SASL "Enable cyrus-sasl support" OFF )
option( WITH_NEWDISTRLISTS "Enable the new distribution lists" ON )
option( WITH_GNOKII "Enable gnokii support" OFF )

if( NOT WITH_ARTS )
set( WITHOUT_ARTS 1 )
endif( )

if( WITH_NEWDISTRLISTS )
set( KDEPIM_NEW_DISTRLISTS 1 )
endif( )


##### user requested modules ####################

option( BUILD_ALL "Build all" OFF )
option( BUILD_LIBKMIME "Build libkmime" ${BUILD_ALL} )
option( BUILD_KTNEF "Build ktnef" ${BUILD_ALL} )
option( BUILD_LIBKCAL "Build libkcal" ${BUILD_ALL} )
option( BUILD_LIBKDEPIM "Build libkdepim" ${BUILD_ALL} )
option( BUILD_LIBKPIMIDENTITIES "Build libkpimidentities" ${BUILD_ALL} )
option( BUILD_LIBKDENETWORK "Build libkdenetwork" ${BUILD_ALL} )
option( BUILD_CERTMANAGER "Build certmanager" ${BUILD_ALL} )
option( BUILD_LIBKPGP "Build libkpgp" ${BUILD_ALL} )
option( BUILD_MIMELIB "Build mimelib" ${BUILD_ALL} )
option( BUILD_LIBKSIEVE "Build libksieve" ${BUILD_ALL} )
option( BUILD_KIOSLAVES "Build kioslaves" ${BUILD_ALL} )
option( BUILD_KMAIL "Build kmail" ${BUILD_ALL} )
option( BUILD_AKREGATOR "Build akregator" ${BUILD_ALL} )
option( BUILD_KALARM "Build kalarm" ${BUILD_ALL} )
option( BUILD_KADDRESSBOOK "Build kaddressbook" ${BUILD_ALL} )


##### configure checks ##########################

include( ConfigureChecks.cmake )


###### global compiler settings #################

add_definitions(
-DHAVE_CONFIG_H
${TQT_CFLAGS_OTHER}
)

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )


##### activate dependencies #####################

if( BUILD_LIBKCAL OR BUILD_LIBKDEPIM OR BUILD_LIBKPIMIDENTITIES OR BUILD_KIOSLAVES OR BUILD_KMAIL )
add_subdirectory( libemailfunctions )
endif()


##### kdepim directories ########################

tde_conditional_add_subdirectory( BUILD_LIBKMIME libkmime )
tde_conditional_add_subdirectory( BUILD_KTNEF ktnef )
tde_conditional_add_subdirectory( BUILD_LIBKCAL libkcal )
tde_conditional_add_subdirectory( BUILD_LIBKDEPIM libkdepim )
tde_conditional_add_subdirectory( BUILD_LIBKPIMIDENTITIES libkpimidentities )
tde_conditional_add_subdirectory( BUILD_LIBKDENETWORK libkdenetwork )
tde_conditional_add_subdirectory( BUILD_CERTMANAGER certmanager )
tde_conditional_add_subdirectory( BUILD_LIBKPGP libkpgp )
tde_conditional_add_subdirectory( BUILD_MIMELIB mimelib )
tde_conditional_add_subdirectory( BUILD_LIBKSIEVE libksieve )
tde_conditional_add_subdirectory( BUILD_KIOSLAVES kioslaves )
tde_conditional_add_subdirectory( BUILD_KMAIL kmail )
tde_conditional_add_subdirectory( BUILD_AKREGATOR akregator )
tde_conditional_add_subdirectory( BUILD_KALARM kalarm )
tde_conditional_add_subdirectory( BUILD_KADDRESSBOOK kaddressbook )


##### write configure files #####################

configure_file( config.h.cmake config.h @ONLY )

+ 63
- 0
ConfigureChecks.cmake View File

@@ -0,0 +1,63 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

if( BUILD_LIBKDEPIM OR BUILD_KMAIL )
option( KDEPIM_NEW_DISTRLISTS "Define if you want to use the new distribution lists" ON )
endif( )


if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK )

if( NOT HAVE_GPGME_0_4_BRANCH )
message( STATUS "checking for 'gpgme'" )
endif( )

# find gpgme-config
find_program( GPGME_EXECUTABLE NAMES gpgme-config )
if( NOT GPGME_EXECUTABLE )
tde_message_fatal( "gpgme-config are NOT found.\n gpgme library are installed?" )
endif( )

macro( __run_gpgme_config __type __var )
execute_process(
COMMAND ${GPGME_EXECUTABLE} --${__type}
OUTPUT_VARIABLE ${__var}
RESULT_VARIABLE __result
OUTPUT_STRIP_TRAILING_WHITESPACE )
if( _result )
tde_message_fatal( "Unable to run ${GPGME_EXECUTABLE}!\n gpgme library are correctly installed?\n Path to gpgme-config are corect?" )
endif( )
endmacro( )

__run_gpgme_config( version GPGME_VERSION )
__run_gpgme_config( cflags GPGME_INCLUDE_DIRS )
__run_gpgme_config( libs GPGME_LIBRARIES )

# cleanup
string( REGEX REPLACE "(^| )-I" ";" GPGME_INCLUDE_DIRS ${GPGME_INCLUDE_DIRS} )
string( REGEX REPLACE "(^| )-l" ";" GPGME_LIBRARIES ${GPGME_LIBRARIES} )

# assuming that all newer system have gpgme >= 0.4
set( HAVE_GPGME_0_4_BRANCH 1 CACHE INTERNAL "" )

# NOTE: assume we have largefile support (need for gpgme)
# FIXME: to be sure, we must check it
add_definitions( -D_FILE_OFFSET_BITS=64 )

if( NOT HAVE_GPGME_0_4_BRANCH )
message( STATUS " found 'gpgme', version ${GPGME_VERSION}" )
endif( )
endif( )

# required stuff
find_package( Qt )
find_package( TQt )
find_package( TDE )

+ 12
- 0
akregator/CMakeLists.txt View File

@@ -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
#
#################################################

add_subdirectory( src )

+ 122
- 0
akregator/src/CMakeLists.txt View File

@@ -0,0 +1,122 @@
#################################################
#
# (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( librss )
add_subdirectory( about )
add_subdirectory( mk4storage )
add_subdirectory( pics )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_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
plugin.h articleinterceptor.h akregator_export.h storage.h
feedstorage.h storagefactory.h storagefactoryregistry.h
DESTINATION ${INCLUDE_INSTALL_DIR}/akregator )


##### other data ################################

tde_install_icons( )

install( FILES
akregator.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR} )

install( FILES
akregator.kcfg
DESTINATION ${KCFG_INSTALL_DIR} )

install( FILES
akregator_part.desktop feed.protocol
DESTINATION ${SERVICES_INSTALL_DIR} )

install( FILES
akregator_plugin.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR} )

install( FILES
akregator_shell.rc articleviewer.rc eventsrc
pageviewer.rc akregator_part.rc
DESTINATION ${DATA_INSTALL_DIR}/akregator )


##### akregatorprivate (shared) #################

tde_add_library( akregatorprivate SHARED AUTOMOC
SOURCES
aboutdata.cpp akregatorconfig.kcfgc article.cpp
articlefilter.cpp articleinterceptor.cpp dragobjects.cpp
feed.cpp feediconmanager.cpp feediconmanager.skel
feedlist.cpp feedstoragedummyimpl.cpp fetchqueue.cpp
folder.cpp nodelist.cpp plugin.cpp pluginmanager.cpp
simplenodeselector.cpp storage.cpp storagedummyimpl.cpp
storagefactorydummyimpl.cpp storagefactoryregistry.cpp
tag.cpp tagfolder.cpp tagnode.cpp tagnodelist.cpp
tagset.cpp trayicon.cpp treenode.cpp treenodevisitor.cpp
utils.cpp
VERSION 0.0.0
LINK rsslocal-static kio-shared
DESTINATION ${LIB_INSTALL_DIR}
)


##### akregator (executable) ####################

tde_add_executable( akregator AUTOMOC
SOURCES main.cpp mainwindow.cpp
LINK akregatorprivate-shared kdepim-shared kparts-shared
DESTINATION ${BIN_INSTALL_DIR}
)


##### libakregatorpart (module) #################

tde_add_kpart( libakregatorpart AUTOMOC
SOURCES
actionmanager.cpp actionmanagerimpl.cpp
addfeeddialog.cpp addfeedwidgetbase.ui
akregator_part.cpp akregator_partiface.skel
akregator_run.cpp akregator_view.cpp articlelistview.cpp
articleviewer.cpp configdialog.cpp feeditem.cpp
feedlistview.cpp folderitem.cpp frame.cpp kernel.cpp
notificationmanager.cpp pageviewer.cpp progressmanager.cpp
propertiesdialog.cpp propertieswidgetbase.ui searchbar.cpp
settings_advancedbase.ui settings_advanced.cpp
settings_appearance.ui settings_archive.ui
settings_browser.ui settings_general.ui speechclient.cpp
tabwidget.cpp tagaction.cpp tagfolderitem.cpp
tagnodeitem.cpp tagpropertiesdialog.cpp
tagpropertieswidgetbase.ui treenodeitem.cpp
viewer.cpp ${TDE_INCLUDE_DIR}/kspeechsink.skel
${TDE_INCLUDE_DIR}/kspeech.stub listtabwidget.cpp
LINK akregatorprivate-shared kdepim-shared khtml-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 14
- 0
akregator/src/about/CMakeLists.txt View File

@@ -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-akregator.png main.html akregator.css
DESTINATION ${DATA_INSTALL_DIR}/akregator/about )

+ 26
- 0
akregator/src/librss/CMakeLists.txt View File

@@ -0,0 +1,26 @@
#################################################
#
# (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}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)


##### rsslocal (static) #########################

tde_add_library( rsslocal STATIC_PIC AUTOMOC
SOURCES
article.cpp document.cpp image.cpp textinput.cpp
tools_p.cpp loader.cpp enclosure.cpp category.cpp
feeddetector.cpp
)

+ 43
- 0
akregator/src/mk4storage/CMakeLists.txt View File

@@ -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
#
#################################################

add_subdirectory( metakit )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/akregator/src
${CMAKE_SOURCE_DIR}/akregator/src/mk4storage/metakit/include
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES akregator_mk4storage_plugin.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES mk4config.kcfg DESTINATION ${KCFG_INSTALL_DIR} )


##### libakregator_mk4storage_plugin (module) ##

tde_add_kpart( libakregator_mk4storage_plugin AUTOMOC
SOURCES
feedstoragemk4impl.cpp mk4plugin.cpp storagemk4impl.cpp
storagefactorymk4impl.cpp
LINK
rsslocal-static metakitlocal-static
akregatorprivate-shared kio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 12
- 0
akregator/src/mk4storage/metakit/CMakeLists.txt View File

@@ -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
#
#################################################

add_subdirectory( src )

+ 27
- 0
akregator/src/mk4storage/metakit/src/CMakeLists.txt View File

@@ -0,0 +1,27 @@
#################################################
#
# (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_SOURCE_DIR}/../include
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)


##### metakitlocal (static) #####################

tde_add_library( metakitlocal STATIC_PIC
SOURCES
column.cpp custom.cpp derived.cpp field.cpp fileio.cpp
format.cpp handler.cpp persist.cpp remap.cpp std.cpp
store.cpp string.cpp table.cpp univ.cpp view.cpp viewx.cpp
)

+ 16
- 0
akregator/src/pics/CMakeLists.txt View File

@@ -0,0 +1,16 @@
#################################################
#
# (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( )

install( FILES
akregator_flag.png kmmsgflag.png kmmsgnew.png kmmsgunseen.png
DESTINATION ${DATA_INSTALL_DIR}/akregator/pics )

+ 57
- 0
certmanager/CMakeLists.txt View File

@@ -0,0 +1,57 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

project( certmanager )

include( ConfigureChecks.cmake )

tde_import( libkdenetwork )

add_subdirectory( lib )
add_subdirectory( conf )
add_subdirectory( kwatchgnupg )

add_definitions( -DLIBKLEOPATRA_NO_COMPAT )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/lib
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/libkdenetwork
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES kleopatra_import.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kleopatraui.rc DESTINATION ${XDG_APPS_INSTALL_DIR}/kleopatra )


##### kleopatra (executable) ####################

tde_add_executable( kleopatra AUTOMOC
SOURCES
customactions.cpp aboutdata.cpp main.cpp certmanager.cpp
hierarchyanalyser.cpp certificatewizard.ui certificatewizardimpl.cpp
certificateinfowidget.ui certificateinfowidgetimpl.cpp
crlview.cpp storedtransferjob.cpp certlistview.cpp
LINK conf-static kleopatra-shared kutils-shared kabc-shared
DESTINATION ${BIN_INSTALL_DIR}
)

tde_install_export( )

+ 22
- 0
certmanager/ConfigureChecks.cmake View File

@@ -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
#
#################################################

# get MAX_CMD_LENGTH
execute_process(
COMMAND getconf ARG_MAX
OUTPUT_VARIABLE MAX_CMD_LENGTH
RESULT_VARIABLE _result
OUTPUT_STRIP_TRAILING_WHITESPACE )
if( _result )
tde_message_fatal( "Unable to run getconf!\n MAX_CMD_LENGTH cannot be determined." )
endif()
math( EXPR MAX_CMD_LENGTH "(${MAX_CMD_LENGTH} / 4) * 3" )
set( MAX_CMD_LENGTH ${MAX_CMD_LENGTH} CACHE INTERNAL "" FORCE )

+ 55
- 0
certmanager/conf/CMakeLists.txt View File

@@ -0,0 +1,55 @@
#################################################
#
# (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( -DLIBKLEOPATRA_NO_COMPAT )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}/certmanager/lib/ui
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/certmanager/lib/ui
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES
kleopatra_config_dirserv.desktop
kleopatra_config_appear.desktop
kleopatra_config_dnorder.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )


##### kcm_kleopatra (module) ####################

tde_add_kpart( kcm_kleopatra AUTOMOC
SOURCES
dirservconfigpage.cpp appearanceconfigpage.cpp
appearanceconfigwidgetbase.ui dnorderconfigpage.cpp
appearanceconfigwidget.cpp
LINK kleopatra-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### conf (static) #############################

tde_add_library( conf STATIC AUTOMOC
SOURCES configuredialog.cpp
)

+ 47
- 0
certmanager/kwatchgnupg/CMakeLists.txt View File

@@ -0,0 +1,47 @@
#################################################
#
# (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( -DLIBKLEOPATRA_NO_COMPAT )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_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
kwatchgnupg.png kwatchgnupg2.png
DESTINATION ${DATA_INSTALL_DIR}/kwatchgnupg/pics )

install( FILES
kwatchgnupgui.rc
DESTINATION ${DATA_INSTALL_DIR}/kwatchgnupg )


##### kwatchgnupg (executable) ##################

tde_add_executable( kwatchgnupg AUTOMOC
SOURCES
kwatchgnupgmainwin.cpp kwatchgnupgconfig.cpp
aboutdata.cpp tray.cpp main.cpp
LINK kleopatra-shared
DESTINATION ${BIN_INSTALL_DIR}
)

+ 52
- 0
certmanager/lib/CMakeLists.txt View File

@@ -0,0 +1,52 @@
#################################################
#
# (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( pics )
add_subdirectory( kleo )
add_subdirectory( backends )
add_subdirectory( ui )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/libkdenetwork
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${GPGME_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES libkleopatrarc.desktop DESTINATION ${CONFIG_INSTALL_DIR} RENAME libkleopatrarc )


##### kleopatra (shared) ########################

tde_add_library( kleopatra SHARED AUTOMOC
SOURCES
cryptplug.cpp cryptplugwrapper.cpp
cryptplugwrapperlist.cpp cryptplugfactory.cpp
VERSION 1.0.0
EMBED
kleopatra_core-static kleopatra_ui-static
LINK
kleopatra_backend_qgpgme-static
kleopatra_backend_chiasmus-static
qgpgme-shared kio-shared
DESTINATION ${LIB_INSTALL_DIR}
)

+ 13
- 0
certmanager/lib/backends/CMakeLists.txt View File

@@ -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( qgpgme )
add_subdirectory( chiasmus )

+ 33
- 0
certmanager/lib/backends/chiasmus/CMakeLists.txt View File

@@ -0,0 +1,33 @@
#################################################
#
# (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 )

add_definitions( "-DGPG_ERR_SOURCE_DEFAULT=((gpg_err_source_t)176)" )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/libkdenetwork
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)


##### kleopatra_backend_chiasmus (static) #######

tde_add_library( kleopatra_backend_chiasmus STATIC_PIC AUTOMOC
SOURCES
config_data.c obtainkeysjob.cpp symcryptrunprocessbase.cpp
chiasmusjob.cpp chiasmuslibrary.cpp chiasmusbackend.cpp
)

+ 15
- 0
certmanager/lib/backends/chiasmus/ConfigureChecks.cmake View File

@@ -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
#
#################################################

check_c_source_compiles("
union { int one; const char * two } foo = { .two = \"Hello\" };
int main() { return 0; }"
HAVE_C99_INITIALIZERS )

+ 38
- 0
certmanager/lib/backends/qgpgme/CMakeLists.txt View File

@@ -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_BINARY_DIR}
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/libkdenetwork
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${GPGME_INCLUDE_DIRS}
)


##### kleopatra_backend_qgpgme (static) #########

tde_add_library( kleopatra_backend_qgpgme STATIC_PIC AUTOMOC
SOURCES
gnupgprocessbase.cpp qgpgmeprogresstokenmapper.cpp
qgpgmebackend.cpp qgpgmejob.cpp qgpgmekeylistjob.cpp
qgpgmekeygenerationjob.cpp qgpgmeimportjob.cpp
qgpgmeexportjob.cpp qgpgmesecretkeyexportjob.cpp
qgpgmedownloadjob.cpp qgpgmedeletejob.cpp
qgpgmeencryptjob.cpp qgpgmedecryptjob.cpp
qgpgmesignjob.cpp qgpgmeverifydetachedjob.cpp
qgpgmeverifyopaquejob.cpp qgpgmesignencryptjob.cpp
qgpgmedecryptverifyjob.cpp qgpgmecryptoconfig.cpp
qgpgmerefreshkeysjob.cpp
)

+ 48
- 0
certmanager/lib/kleo/CMakeLists.txt View File

@@ -0,0 +1,48 @@
#################################################
#
# (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_BINARY_DIR}
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/libkdenetwork
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### headers ###################################

install( FILES
enum.h cryptobackend.h cryptobackendfactory.h
cryptoconfig.h dn.h job.h keylistjob.h keygenerationjob.h
importjob.h exportjob.h downloadjob.h deletejob.h
encryptjob.h decryptjob.h signjob.h verifydetachedjob.h
verifyopaquejob.h decryptverifyjob.h signencryptjob.h
refreshkeysjob.h multideletejob.h hierarchicalkeylistjob.h
keyfilter.h keyfiltermanager.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kleo )


##### kleopatra_core (static) ###################

tde_add_library( kleopatra_core STATIC_PIC AUTOMOC
SOURCES
cryptobackend.cpp cryptobackendfactory.cpp
enum.cpp dn.cpp job.cpp multideletejob.cpp
hierarchicalkeylistjob.cpp kconfigbasedkeyfilter.cpp
keyfiltermanager.cpp
)

+ 16
- 0
certmanager/lib/pics/CMakeLists.txt View File

@@ -0,0 +1,16 @@
#################################################
#
# (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( gpg gpgsm )

install( FILES
key.png key_ok.png key_bad.png key_unknown.png chiasmus_chi.png
DESTINATION ${DATA_INSTALL_DIR}/libkleopatra/pics )

+ 46
- 0
certmanager/lib/ui/CMakeLists.txt View File

@@ -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_BINARY_DIR}
${CMAKE_SOURCE_DIR}/certmanager/lib
${CMAKE_SOURCE_DIR}/libkdenetwork
${CMAKE_SOURCE_DIR}/libkdepim
${CMAKE_SOURCE_DIR}/libkpgp
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${GPGME_INCLUDE_DIRS}
)


##### headers ###################################

install( FILES
kdhorizontalline.h messagebox.h progressbar.h
progressdialog.h keylistview.h keyselectiondialog.h
keyrequester.h passphrasedialog.h keyapprovaldialog.h
backendconfigwidget.h dnattributeorderconfigwidget.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kleo )


##### kleopatra_ui (static) #####################

tde_add_library( kleopatra_ui STATIC_PIC AUTOMOC
SOURCES
kdhorizontalline.cpp messagebox.cpp progressbar.cpp
progressdialog.cpp keylistview.cpp keyselectiondialog.cpp
keyrequester.cpp passphrasedialog.cpp keyapprovaldialog.cpp
backendconfigwidget.cpp dnattributeorderconfigwidget.cpp
cryptoconfigmodule.cpp cryptoconfigdialog.cpp
directoryserviceswidgetbase.ui directoryserviceswidget.cpp
adddirectoryservicedialog.ui adddirectoryservicedialogimpl.cpp
)

+ 46
- 0
config.h.cmake View File

@@ -0,0 +1,46 @@
// kalarm
#cmakedefine WITHOUT_ARTS 1

// ktnef
#cmakedefine HAVE_INTTYPES_H 1
#cmakedefine HAVE_STDINT_H 1
#cmakedefine SIZEOF_UNSIGNED_LONG_LONG @SIZEOF_UNSIGNED_LONG_LONG@
#cmakedefine SIZEOF_UNSIGNED_LONG @SIZEOF_UNSIGNED_LONG@
#cmakedefine SIZEOF_UINT64_T @SIZEOF_UINT64_T@

// libkdepim, kmail
#cmakedefine KDEPIM_NEW_DISTRLISTS 1

// libkdemanager, certmanager
#cmakedefine HAVE_GPGME_0_4_BRANCH 1

// certmanager
#cmakedefine MAX_CMD_LENGTH @MAX_CMD_LENGTH@
#cmakedefine HAVE_C99_INITIALIZERS 1

// kioslaves
#cmakedefine HAVE_LIBSASL2 1

// kmail
#cmakedefine HAVE_STLNAMESPACE 1
#cmakedefine STD_NAMESPACE_PREFIX @STD_NAMESPACE_PREFIX@

// kaddressbook
#cmakedefine KDEPIM_NEW_DISTRLISTS 1

// mimelib
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif

#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif

+ 109
- 0
kaddressbook/CMakeLists.txt View File

@@ -0,0 +1,109 @@
#################################################
#
# (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( libkdenetwork )
tde_import( certmanager )
tde_import( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )

add_subdirectory( interfaces )
add_subdirectory( common )
add_subdirectory( printing )
add_subdirectory( editors )
add_subdirectory( views )
add_subdirectory( features )
add_subdirectory( xxport )
add_subdirectory( kcmconfigs )
add_subdirectory( pics )
add_subdirectory( csv-templates )
add_subdirectory( thumbnailcreator )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/common
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/common
${CMAKE_CURRENT_SOURCE_DIR}/interfaces
${CMAKE_CURRENT_SOURCE_DIR}/editors
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

tde_install_icons( kaddressbook )

install( FILES
kaddressbook.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR} )

install( FILES
kaddressbook_view.desktop dcopaddressbook.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR} )

install( FILES
kaddressbookui.rc kaddressbook_part.rc zone.tab
DESTINATION ${DATA_INSTALL_DIR}/kaddressbook )


##### libkaddressbookpart (module) ##############

tde_add_kpart( libkaddressbookpart AUTOMOC
SOURCES kaddressbook_part.cpp
LINK kaddressbook-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kaddressbook (executable) #################

tde_add_executable( kaddressbook AUTOMOC
SOURCES main.cpp kaddressbookmain.cpp
LINK kaddressbook-shared
DESTINATION ${BIN_INSTALL_DIR}
)


##### kaddressbook (shared) #####################

tde_add_library( kaddressbook SHARED AUTOMOC
SOURCES
addresseeconfig.cpp addresseeeditordialog.cpp addresseeeditorwidget.cpp
addresseeeditorbase.cpp addresseeeditorextension.cpp addresseeutil.cpp
addresseditwidget.cpp addviewdialog.cpp emaileditwidget.cpp
extensionmanager.cpp filtereditdialog.cpp filterselectionwidget.cpp
geowidget.cpp imagewidget.cpp incsearchwidget.cpp jumpbuttonbar.cpp kabcore.cpp
kablock.cpp kaddressbookiface.skel kaddressbookservice.cpp kaddressbookview.cpp
keywidget.cpp ldapsearchdialog.cpp nameeditdialog.cpp phoneeditwidget.cpp
secrecywidget.cpp soundwidget.cpp viewconfigurefieldspage.cpp
viewconfigurefilterpage.cpp viewconfigurewidget.cpp undocmds.cpp
viewmanager.cpp xxportmanager.cpp xxportselectdialog.cpp
contacteditorwidgetmanager.cpp simpleaddresseeeditor.cpp
advancedcustomfields.cpp customfieldswidget.cpp freebusywidget.cpp
searchmanager.cpp imeditwidget.cpp kabtools.cpp distributionlistpicker.cpp
distributionlisteditor.cpp distributionlistentryview.cpp
VERSION 0.0.0
LINK
kabcommon-static kabim-static printer-static
kabinterfaces-shared
kdepim-shared kabc_file-shared kdeprint-shared kutils-shared
DESTINATION ${LIB_INSTALL_DIR}
)

+ 26
- 0
kaddressbook/common/CMakeLists.txt View File

@@ -0,0 +1,26 @@
#################################################
#
# (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_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)


##### kabcommon (static) ########################

tde_add_library( kabcommon STATIC_PIC AUTOMOC
SOURCES
kabprefs.cpp kabprefs_base.kcfgc locationmap.cpp
filter.cpp
)

+ 14
- 0
kaddressbook/csv-templates/CMakeLists.txt View File

@@ -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
kaddressbook.desktop outlook2000.desktop yahoo.desktop
DESTINATION ${DATA_INSTALL_DIR}/kaddressbook/csv-templates )

+ 51
- 0
kaddressbook/editors/CMakeLists.txt View File

@@ -0,0 +1,51 @@
#################################################
#
# (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( protocols )
add_subdirectory( icons )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkdenetwork
${CMAKE_SOURCE_DIR}/kaddressbook/interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${GPGME_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES cryptosettings.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kaddressbook )
install( FILES kaddressbookimprotocol.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )


##### kabim (static) ############################

tde_add_library( kabim STATIC_PIC AUTOMOC
SOURCES
imeditorwidget.cpp imeditorbase.ui imaddressbase.ui imaddresswidget.cpp
)


##### libkaddrbk_cryptosettings (module) ########

tde_add_kpart( libkaddrbk_cryptosettings AUTOMOC
SOURCES cryptowidget.cpp
LINK kabinterfaces-shared kleopatra-shared kabc-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 12
- 0
kaddressbook/editors/icons/CMakeLists.txt View File

@@ -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( DESTINATION ${DATA_INSTALL_DIR}/kaddressbook/icons )

+ 17
- 0
kaddressbook/editors/protocols/CMakeLists.txt View File

@@ -0,0 +1,17 @@
#################################################
#
# (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
icqprotocol.desktop aimprotocol.desktop ircprotocol.desktop smsprotocol.desktop
gaduprotocol.desktop jabberprotocol.desktop yahooprotocol.desktop
msnprotocol.desktop groupwiseprotocol.desktop meanwhileprotocol.desktop
skypeprotocol.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kaddressbook )

+ 59
- 0
kaddressbook/features/CMakeLists.txt View File

@@ -0,0 +1,59 @@
#################################################
#
# (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_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kaddressbook
${CMAKE_SOURCE_DIR}/kaddressbook/interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)

if( WITH_NEWDISTRLISTS )
set( DESKTOP distributionlistng.desktop )
set( SOURCE distributionlistngwidget.cpp )
set( TARGET libkaddrbk_distributionlistng )
else( )
set( DESKTOP distributionlist.desktop )
set( SOURCE distributionlistwidget.cpp )
set( TARGET libkaddrbk_distributionlist )
endif( )


##### other data ################################

install( FILES
${DESKTOP} resourceselection.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kaddressbook )


##### libkaddrbk_distributionlist (module) ######

tde_add_kpart( ${TARGET} AUTOMOC
SOURCES ${SOURCE}
LINK kabinterfaces-shared kdepim-shared kabc-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### libkaddrbk_resourceselection (module) #####

tde_add_kpart( libkaddrbk_resourceselection AUTOMOC
SOURCES resourceselection.cpp
LINK kabinterfaces-shared kdepim-shared kabc-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 50
- 0
kaddressbook/interfaces/CMakeLists.txt View File

@@ -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_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### headers ###################################

install( FILES
configurewidget.h contacteditorwidget.h core.h
extensionwidget.h xxport.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kaddressbook )


##### other data ################################

install( FILES
kaddressbook_contacteditorwidget.desktop
kaddressbook_extension.desktop kaddressbook_xxport.desktop
DESTINATION ${SERVICETYPES_INSTALL_DIR} )


##### kabinterfaces (shared) ####################

tde_add_library( kabinterfaces SHARED AUTOMOC
SOURCES
configurewidget.cpp contacteditorwidget.cpp
core.cpp extensionwidget.cpp xxport.cpp
VERSION 1.0.0
LINK kabc-shared
DESTINATION ${LIB_INSTALL_DIR}
)

+ 61
- 0
kaddressbook/kcmconfigs/CMakeLists.txt View File

@@ -0,0 +1,61 @@
#################################################
#
# (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_BINARY_DIR}/kaddressbook/common
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kaddressbook/common
${CMAKE_SOURCE_DIR}/kaddressbook/interfaces
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES
kabconfig.desktop kabldapconfig.desktop kabcustomfields.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )


##### kcm_kabconfig (module) ####################

tde_add_kpart( kcm_kabconfig AUTOMOC
SOURCES
kcmkabconfig.cpp kabconfigwidget.cpp extensionconfigdialog.cpp
addresseewidget.cpp
LINK kabcommon-static kdepim-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcm_kabldapconfig (module) ################

tde_add_kpart( kcm_kabldapconfig AUTOMOC
SOURCES
addhostdialog.cpp kcmkabldapconfig.cpp ldapoptionswidget.cpp
LINK kdepim-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcm_kabcustomfields (module) ##############

tde_add_kpart( kcm_kabcustomfields AUTOMOC
SOURCES kcmkabcustomfields.cpp
LINK kabcommon-static kdepim-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 13
- 0
kaddressbook/pics/CMakeLists.txt View File

@@ -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( DESTINATION ${DATA_INSTALL_DIR}/kaddressbook/icons )
install( FILES world.jpg DESTINATION ${DATA_INSTALL_DIR}/kaddressbook/pics )

+ 31
- 0
kaddressbook/printing/CMakeLists.txt View File

@@ -0,0 +1,31 @@
#################################################
#
# (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_BINARY_DIR}/kaddressbook/common
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kaddressbook
${CMAKE_SOURCE_DIR}/kaddressbook/common
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)


##### printer (static) ##########################

tde_add_library( printer STATIC_PIC AUTOMOC
SOURCES
detailledstyle.cpp ds_appearance.ui kabentrypainter.cpp mikesstyle.cpp
printingwizard.cpp printprogress.cpp printstyle.cpp selectionpage.cpp
stylepage.cpp printsortmode.cpp
)

+ 33
- 0
kaddressbook/thumbnailcreator/CMakeLists.txt View File

@@ -0,0 +1,33 @@
#################################################
#
# (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(
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES ldifvcardthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )


##### ldifvcardthumbnail (module) ###############

tde_add_kpart( ldifvcardthumbnail
SOURCES ldifvcardcreator.cpp
LINK kabc-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 65
- 0
kaddressbook/views/CMakeLists.txt View File

@@ -0,0 +1,65 @@
#################################################
#
# (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_BINARY_DIR}/kaddressbook/common
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kaddressbook
${CMAKE_SOURCE_DIR}/kaddressbook/interfaces
${CMAKE_SOURCE_DIR}/kaddressbook/common
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES
cardview.desktop iconview.desktop tableview.desktop
DESTINATION ${SERVICES_INSTALL_DIR}/kaddressbook )


##### libkaddrbk_cardview (module) ##############

tde_add_kpart( libkaddrbk_cardview AUTOMOC
SOURCES
cardview.cpp colorlistbox.cpp configurecardviewdialog.cpp
kaddressbookcardview.cpp
LINK kaddressbook-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### libkaddrbk_iconview (module) ##############

tde_add_kpart( libkaddrbk_iconview AUTOMOC
SOURCES
kaddressbookiconview.cpp
LINK kaddressbook-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### libkaddrbk_tableview (module) #############

tde_add_kpart( libkaddrbk_tableview AUTOMOC
SOURCES
configuretableviewdialog.cpp contactlistview.cpp
kaddressbooktableview.cpp
LINK kaddressbook-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 132
- 0
kaddressbook/xxport/CMakeLists.txt View File

@@ -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( )

+ 18
- 0
kaddressbook/xxport/ConfigureChecks.cmake View File

@@ -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( )

+ 77
- 0
kalarm/CMakeLists.txt View File

@@ -0,0 +1,77 @@
#################################################
#
# (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( libkdepim )
tde_import( libkdenetwork )
tde_import( certmanager )
tde_import( libkcal )
tde_import( libkpimidentities )

add_subdirectory( kalarmd )
add_subdirectory( lib )
add_subdirectory( pixmaps )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/lib
${CMAKE_CURRENT_SOURCE_DIR}/kalarmd
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/libkmime
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TDE_LIB_DIR}
${TQT_LIBRARY_DIRS}
)

if( WITH_ARTS )
set( ARTS_LIBRARIES artskde-shared mcop )
endif( )


##### other data ################################

tde_install_icons( )
install( FILES kalarm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kalarm.tray.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
install( FILES kalarmui.rc DESTINATION ${DATA_INSTALL_DIR}/kalarm )
install( FILES uninstall.desktop DESTINATION ${APPS_INSTALL_DIR}/Applications RENAME kalarm.desktop )


##### kalarm (executable) #######################

tde_add_executable( kalarm AUTOMOC
SOURCES
birthdaydlg.cpp main.cpp alarmevent.cpp editdlg.cpp
emailidcombo.cpp find.cpp pickfileradio.cpp
calendarcompat.cpp eventlistviewbase.cpp alarmlistview.cpp
kamail.cpp timeselector.cpp fontcolourbutton.cpp
alarmtimewidget.cpp fontcolour.cpp soundpicker.cpp
sounddlg.cpp alarmcalendar.cpp daemon.cpp undo.cpp
kalarmapp.cpp mainwindowbase.cpp mainwindow.cpp
messagewin.cpp preferences.cpp prefdlg.cpp
kalarmiface.skel recurrenceedit.cpp karecurrence.cpp
deferdlg.cpp functions.cpp specialactions.cpp reminder.cpp
startdaytimer.cpp templatelistview.cpp templatepickdlg.cpp
templatedlg.cpp templatemenuaction.cpp latecancel.cpp
repetition.cpp alarmtext.cpp traywindow.cpp dcophandler.cpp
kalarmd/alarmguiiface.skel
LINK
kalarm-static kalarmd-static
kpimidentities-shared kutils-shared ${ARTS_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

+ 46
- 0
kalarm/kalarmd/CMakeLists.txt View File

@@ -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_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES kalarmd.autostart.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
install( FILES kalarmd.desktop DESTINATION ${APPS_INSTALL_DIR}/.hidden )


##### kalarmd (executable) ######################

tde_add_executable( kalarmd AUTOMOC
SOURCES
adcalendar.cpp adconfigdata.cpp clientinfo.cpp
alarmdaemon.cpp admain.cpp adapp.cpp alarmdaemoniface.skel
LINK kalarmd-static kcal-shared
DESTINATION ${BIN_INSTALL_DIR}
)


##### kalarmd (static) ##########################

tde_add_library( kalarmd STATIC_PIC
SOURCES alarmdaemoniface.stub alarmguiiface.stub
)

+ 32
- 0
kalarm/lib/CMakeLists.txt View File

@@ -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
#
#################################################

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/kalarm
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)


##### kalarm (static) ###########################

tde_add_library( kalarm STATIC_PIC AUTOMOC
SOURCES
buttongroup.cpp checkbox.cpp colourcombo.cpp colourlist.cpp
combobox.cpp dateedit.cpp datetime.cpp label.cpp
messagebox.cpp lineedit.cpp synchtimer.cpp pushbutton.cpp
radiobutton.cpp timeedit.cpp timespinbox.cpp timeperiod.cpp
shellprocess.cpp slider.cpp spinbox.cpp spinbox2.cpp
)

+ 12
- 0
kalarm/pixmaps/CMakeLists.txt View File

@@ -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( kalarm DESTINATION ${DATA_INSTALL_DIR}/kalarm/icons )

+ 16
- 0
kioslaves/CMakeLists.txt View File

@@ -0,0 +1,16 @@
#################################################
#
# (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 )

add_subdirectory( imap4 )
add_subdirectory( mbox )
add_subdirectory( sieve )

+ 22
- 0
kioslaves/ConfigureChecks.cmake View File

@@ -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
#
#################################################

if( WITH_SASL )
check_include_file( sasl/sasl.h HAVE_SASL_SASL_H )
if( HAVE_SASL_SASL_H )
check_library_exists( sasl2 sasl_client_init "" HAVE_LIBSASL2 )
endif( )
if( HAVE_LIBSASL2 )
set( SASL_LIBRARY sasl2 CACHE INTERNAL "" )
else( )
tde_message_fatal( "cyrus-sasl are requested, but not found on your system" )
endif( )
endif( )

+ 44
- 0
kioslaves/imap4/CMakeLists.txt View File

@@ -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
#
#################################################

tde_import( libkmime )

include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libemailfunctions
${CMAKE_SOURCE_DIR}/libkmime
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES
imap4.protocol imaps.protocol
DESTINATION ${SERVICES_INSTALL_DIR} )


##### kio_imap4 (module) ########################

tde_add_kpart( kio_imap4
SOURCES
imapcommand.cc imaplist.cc mailaddress.cc mimeheader.cc
rfcdecoder.cc imap4.cc imapinfo.cc imapparser.cc
mailheader.cc mimehdrline.cc mimeio.cc
LINK emailfunctions-static kmime-shared kio-shared ${SASL_LIBRARY}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 36
- 0
kioslaves/mbox/CMakeLists.txt View File

@@ -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_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES mbox.protocol DESTINATION ${SERVICES_INSTALL_DIR} )


##### kio_mbox (module) #########################

tde_add_kpart( kio_mbox
SOURCES
mbox.cc mboxfile.cc readmbox.cc stat.cc urlinfo.cc
LINK kio-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 35
- 0
kioslaves/sieve/CMakeLists.txt View File

@@ -0,0 +1,35 @@
#################################################
#
# (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_BINARY_DIR}
${CMAKE_SOURCE_DIR}/libkdepim
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


##### other data ################################

install( FILES sieve.protocol DESTINATION ${SERVICES_INSTALL_DIR} )


##### kio_sieve (module) ########################

tde_add_kpart( kio_sieve
SOURCES sieve.cpp
LINK kio-shared ${SASL_LIBRARY}
DESTINATION ${PLUGIN_INSTALL_DIR}
)