TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. project( kmail )
  12. if( WITH_INDEXLIB )
  13. tde_import( indexlib )
  14. add_definitions( -DHAVE_INDEXLIB )
  15. set( INDEX_LIBRARY index-shared )
  16. endif( )
  17. tde_import( libtdenetwork )
  18. tde_import( certmanager )
  19. tde_import( ktnef )
  20. tde_import( libkcal )
  21. tde_import( libkmime )
  22. tde_import( libkpgp )
  23. tde_import( libtdepim )
  24. tde_import( mimelib )
  25. tde_import( libkpimidentities )
  26. tde_import( libksieve )
  27. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
  28. add_subdirectory( interfaces )
  29. add_subdirectory( about )
  30. add_subdirectory( pics )
  31. add_subdirectory( profiles )
  32. add_subdirectory( avscripts )
  33. add_subdirectory( konqueror )
  34. include_directories(
  35. ${CMAKE_CURRENT_BINARY_DIR}
  36. ${CMAKE_CURRENT_SOURCE_DIR}
  37. ${CMAKE_BINARY_DIR}
  38. ${CMAKE_SOURCE_DIR}
  39. ${CMAKE_SOURCE_DIR}/libemailfunctions
  40. ${CMAKE_SOURCE_DIR}/mimelib
  41. ${CMAKE_SOURCE_DIR}/libkmime
  42. ${CMAKE_SOURCE_DIR}/libtdepim
  43. ${CMAKE_SOURCE_DIR}/libkpgp
  44. ${CMAKE_SOURCE_DIR}/libtdenetwork
  45. ${CMAKE_SOURCE_DIR}/certmanager/lib
  46. ${CMAKE_SOURCE_DIR}/libksieve
  47. ${CMAKE_SOURCE_DIR}/ktnef
  48. ${CMAKE_SOURCE_DIR}/korganizer
  49. ${TDE_INCLUDE_DIR}
  50. ${TQT_INCLUDE_DIRS}
  51. ${GPGME_INCLUDE_DIRS}
  52. )
  53. link_directories(
  54. ${TQT_LIBRARY_DIRS}
  55. )
  56. ##### headers ###################################
  57. install( FILES
  58. kmailIface.h kmailpartIface.h kmailicalIface.h
  59. DESTINATION ${INCLUDE_INSTALL_DIR} )
  60. ##### other data ################################
  61. tde_install_icons( )
  62. install( FILES
  63. KMail.desktop kmail_view.desktop
  64. DESTINATION ${XDG_APPS_INSTALL_DIR} )
  65. install( FILES
  66. kmcomposerui.rc kmmainwin.rc kmreadermainwin.rc
  67. eventsrc kmail_part.rc
  68. DESTINATION ${DATA_INSTALL_DIR}/kmail )
  69. install( FILES
  70. kmail.upd
  71. DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
  72. install( PROGRAMS
  73. upgrade-transport.pl kmail-pgpidentity.pl
  74. upgrade-signature.pl kmail-upd-identities.pl
  75. kmail-3.1-use-UOID-for-identities.pl
  76. kmail-3.1-update-new-mail-notification-settings.pl
  77. kmail-3.1.4-dont-use-UOID-0-for-any-identity.pl
  78. kmail-3.2-update-loop-on-goto-unread-settings.sh
  79. kmail-3.2-misc.sh kmail-3.3-use-ID-for-accounts.pl
  80. kmail-3.3-move-identities.pl kmail-3.3-aegypten.pl
  81. kmail-3.3-split-sign-encr-keys.sh kmail-3.3-misc.pl
  82. kmail-3.3b1-misc.pl kmail-3.4-misc.pl
  83. kmail-3.4.1-update-status-filters.pl
  84. kmail-3.5-filter-icons.pl kmail-3.5-trigger-flag-migration.pl
  85. DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
  86. install( FILES
  87. kmail.antispamrc kmail.antivirusrc
  88. DESTINATION ${CONFIG_INSTALL_DIR} )
  89. install( FILES
  90. tips
  91. DESTINATION ${DATA_INSTALL_DIR}/kmail )
  92. install( FILES
  93. dcopmail.desktop dcopimap.desktop
  94. DESTINATION ${SERVICETYPES_INSTALL_DIR} )
  95. install( FILES
  96. kmail_config_misc.desktop kmail_config_appearance.desktop
  97. kmail_config_identity.desktop kmail_config_accounts.desktop
  98. kmail_config_composer.desktop kmail_config_security.desktop
  99. DESTINATION ${SERVICES_INSTALL_DIR} )
  100. install( FILES
  101. kmail.kcfg replyphrases.kcfg custommimeheader.kcfg
  102. templatesconfiguration_kfg.kcfg customtemplates_kfg.kcfg
  103. DESTINATION ${KCFG_INSTALL_DIR} )
  104. install( FILES
  105. application_octetstream.desktop
  106. DESTINATION ${DATA_INSTALL_DIR}/kmail/plugins/bodypartformatter )
  107. ##### kmailprivate (shared) #####################
  108. set( target kmailprivate )
  109. set( ${target}_SRCS
  110. kmmessage.cpp kmmainwin.cpp configuredialog.cpp configuredialog_p.cpp
  111. tdelistviewindexedsearchline.cpp simplestringlisteditor.cpp index.cpp headeritem.cpp
  112. identitydrag.cpp identitylistview.cpp identitydialog.cpp kmfolderdia.cpp kmmsgdict.cpp
  113. kmfoldertree.cpp kmtransport.cpp kmfoldercombobox.cpp kmaccount.cpp kmheaders.cpp
  114. kmcomposewin.cpp kmfolder.cpp kmmsgpartdlg.cpp kmreaderwin.cpp htmlstatusbar.cpp
  115. kmgroupware.cpp folderstorage.cpp listjob.cpp csshelper.cpp tdelistboxdialog.cpp
  116. kmmsginfo.cpp actionscheduler.cpp messageproperty.cpp accountmanager.cpp kmacctfolder.cpp
  117. kmdict.cpp kmsystemtray.cpp kmacctlocal.cpp kmfolderdir.cpp kmfoldermgr.cpp
  118. kmfoldernode.cpp kmsender.cpp kmacctseldlg.cpp kmfiltermgr.cpp kmfilterdlg.cpp
  119. filterimporterexporter.cpp kmsearchpatternedit.cpp encodingdetector.cpp encodingdetector_ja.cpp
  120. kmfilteraction.cpp kmsearchpattern.cpp kmfolderimap.cpp kmfolderseldlg.cpp kmfilter.cpp
  121. kmmsgpart.cpp kmmsgbase.cpp kmmsglist.cpp kmaddrbook.cpp signatureconfigurator.cpp
  122. xfaceconfigurator.cpp networkaccount.cpp imapaccountbase.cpp popaccount.cpp kmservertest.cpp
  123. kmacctimap.cpp kmacctcachedimap.cpp kmfawidgets.cpp kmfoldermbox.cpp colorlistbox.cpp
  124. undostack.cpp kmfoldercachedimap.cpp attachmentstrategy.cpp kmfoldermaildir.cpp
  125. kmkernel.cpp accountdialog.cpp searchwindow.cpp vcardviewer.cpp vacationdialog.cpp
  126. vacation.cpp sievedebugdialog.cpp sieveconfig.cpp sievejob.cpp kmpopheaders.cpp
  127. kmpopfiltercnfrmdlg.cpp kmmimeparttree.cpp mailinglist-magic.cpp kmacctmaildir.cpp
  128. headerstyle.cpp headerstrategy.cpp tdehtmlparthtmlwriter.cpp filehtmlwriter.cpp
  129. teehtmlwriter.cpp mailcomposerIface.skel objecttreeparser.cpp objecttreeparser_p.cpp
  130. attachmentcollector.cpp bodypartformatterfactory.cpp bodypartformatter.cpp partNode.cpp
  131. mailsourceviewer.cpp kmcommands.cpp kmreadermainwin.cpp kmstartup.cpp kmmainwidget.cpp
  132. folderpropertiesdialog.ui kmfolderindex.cpp kmfoldersearch.cpp transportmanager.cpp
  133. imapjob.cpp folderjob.cpp cachedimapjob.cpp maildirjob.cpp mboxjob.cpp subscriptiondialog.cpp
  134. kmailicalifaceimpl.cpp aboutdata.cpp folderIface.cpp folderIface.skel mailserviceimpl.cpp
  135. attachmentlistview.cpp kmedit.cpp kmlineeditspell.cpp kmatmlistview.cpp composer.cpp
  136. isubject.cpp bodyvisitor.cpp antispamwizard.cpp urlhandlermanager.cpp dictionarycombobox.cpp
  137. secondarywindow.cpp filterlog.cpp filterlogdlg.cpp messagecomposer.cpp keyresolver.cpp
  138. globalsettings.cpp globalsettings_base.kcfgc regexplineedit.cpp rulewidgethandlermanager.cpp
  139. headerlistquicksearch.cpp acljobs.cpp folderdiaacltab.cpp quotajobs.cpp expirejob.cpp
  140. folderdiaquotatab.cpp folderdiaquotatab_p.cpp jobscheduler.cpp partnodebodypart.cpp
  141. compactionjob.cpp callback.cpp searchjob.cpp renamejob.cpp composercryptoconfiguration.ui
  142. warningconfiguration.ui smimeconfiguration.ui annotationjobs.cpp accountcombobox.cpp
  143. redirectdialog.cpp foldershortcutdialog.cpp folderrequester.cpp spamheaderanalyzer.cpp
  144. antispamconfig.cpp replyphrases.kcfgc custommimeheader.kcfgc recipientseditor.cpp
  145. recipientspicker.cpp twindowpositioner.cpp textsource.cpp distributionlistdialog.cpp
  146. expirypropertiesdialog.cpp scalix.cpp mailinglistpropertiesdialog.cpp newfolderdialog.cpp
  147. accountwizard.cpp managesievescriptsdialog.cpp chiasmuskeyselector.cpp
  148. util.cpp templatesinsertcommand.cpp customtemplates_base.ui customtemplates.cpp
  149. customtemplates_kfg.kcfgc templatesconfiguration_base.ui templatesconfiguration.cpp
  150. templatesconfiguration_kfg.kcfgc templateparser.cpp copyfolderjob.cpp messagecopyhelper.cpp
  151. localsubscriptiondialog.cpp editorwatcher.cpp favoritefolderview.cpp
  152. foldertreebase.cpp snippetdlgbase.ui snippetwidget.cpp snippetconfig.cpp
  153. snippetdlg.cpp snippetitem.cpp snippetsettings.cpp snippetsettingsbase.ui
  154. messageactions.cpp korghelper.cpp foldersetselector.cpp stringutil.cpp
  155. treebase.cpp backupjob.cpp importjob.cpp folderutil.cpp archivefolderdialog.cpp
  156. importarchivedialog.cpp ${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub
  157. ${CMAKE_SOURCE_DIR}/korganizer/korganizeriface.stub )
  158. tde_save( KDE3_DCOPIDL_EXECUTABLE )
  159. set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} )
  160. kde3_add_dcop_skels( ${target}_SRCS kmailIface.h kmailicalIface.h )
  161. tde_restore( KDE3_DCOPIDL_EXECUTABLE )
  162. tde_add_library( ${target} SHARED AUTOMOC
  163. SOURCES ${${target}_SRCS}
  164. LINK
  165. emailfunctions-static kmime-shared kpgp-shared tdepim-shared kpimidentities-shared
  166. mimelib-shared ksieve-shared tdehtml-shared ${INDEX_LIBRARY}
  167. DESTINATION ${LIB_INSTALL_DIR}
  168. )
  169. ##### kmail (executable) ########################
  170. tde_add_executable( kmail
  171. SOURCES main.cpp
  172. LINK kmailprivate-shared
  173. DESTINATION ${BIN_INSTALL_DIR}
  174. )
  175. ##### kcm_kmail (module) ########################
  176. tde_add_kpart( kcm_kmail AUTOMOC
  177. SOURCES kcm_kmail.cpp
  178. LINK kmailprivate-shared
  179. DESTINATION ${PLUGIN_INSTALL_DIR}
  180. )
  181. ##### libkmailpart (module) #####################
  182. tde_add_kpart( libkmailpart AUTOMOC
  183. SOURCES kmailpartIface.skel kmail_part.cpp
  184. LINK kmailprivate-shared
  185. DESTINATION ${PLUGIN_INSTALL_DIR}
  186. )
  187. ##### libkmail_bodypartformatter_application_octetstream (module)
  188. tde_add_kpart( libkmail_bodypartformatter_application_octetstream
  189. SOURCES app_octetstream.cpp
  190. LINK ${TQT_LIBRARIES}
  191. DESTINATION ${PLUGIN_INSTALL_DIR}
  192. )
  193. ##### install import cmake modules ###############
  194. tde_install_export( )