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

129
CMakeLists.txt

@ -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
ConfigureChecks.cmake

@ -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
akregator/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
#
#################################################
add_subdirectory( src )

122
akregator/src/CMakeLists.txt

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

26
akregator/src/librss/CMakeLists.txt

@ -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
akregator/src/mk4storage/CMakeLists.txt

@ -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
akregator/src/mk4storage/metakit/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
#
#################################################
add_subdirectory( src )

27
akregator/src/mk4storage/metakit/src/CMakeLists.txt

@ -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
akregator/src/pics/CMakeLists.txt

@ -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
certmanager/CMakeLists.txt

@ -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
certmanager/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
#
#################################################
# 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
certmanager/conf/CMakeLists.txt

@ -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
certmanager/kwatchgnupg/CMakeLists.txt

@ -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
certmanager/lib/CMakeLists.txt

@ -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
certmanager/lib/backends/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( qgpgme )
add_subdirectory( chiasmus )

33
certmanager/lib/backends/chiasmus/CMakeLists.txt

@ -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
certmanager/lib/backends/chiasmus/ConfigureChecks.cmake

@ -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
certmanager/lib/backends/qgpgme/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_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
certmanager/lib/kleo/CMakeLists.txt

@ -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
certmanager/lib/pics/CMakeLists.txt

@ -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
certmanager/lib/ui/CMakeLists.txt

@ -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
config.h.cmake

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