Fix initial state of actions (and window title).
[kdepim.git] / messagecomposer / CMakeLists.txt
blob7465a101d8e6f6c6461af583c766c7f4f3971344
1 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
3 include_directories(
4     ${Boost_INCLUDE_DIR}
5     ${SOPRANO_INCLUDE_DIR}
6     ${CMAKE_SOURCE_DIR}/libkdepim
7     ${CMAKE_SOURCE_DIR}/libkleo
10 add_definitions( -DQT_NO_CAST_FROM_ASCII )
11 add_definitions( -DQT_NO_CAST_TO_ASCII )
13 add_subdirectory( tests )
15 set( messagecomposer_src
17      composer.cpp
18      util.cpp
20      attachmentcontrollerbase.cpp
21      attachmentmodel.cpp
22      attachmentfrompublickeyjob.cpp
24      akonadisender.cpp
25      messagehelper.cpp
26      messagefactory.cpp
27      messagecomposersettings.cpp
28      composerviewbase.cpp
30      messagepart.cpp
31      globalpart.cpp
32      infopart.cpp
33      textpart.cpp
35      jobbase.cpp
36      contentjobbase.cpp
37      attachmentjob.cpp
38      singlepartjob.cpp
39      multipartjob.cpp
40      maintextjob.cpp
41      signjob.cpp
42      encryptjob.cpp
43      signencryptjob.cpp
44      transparentjob.cpp
46      skeletonmessagejob.cpp
48      kmeditor.cpp
49      inserttextfilejob.cpp
50      signaturecontroller.cpp
51      composerlineedit.cpp
52      recipientspicker.cpp
53      recipient.cpp
54      recipientline.cpp
55      recipientseditor.cpp
56      recipientseditorsidewidget.cpp
57      kwindowpositioner.cpp
59      aliasesexpandjob.cpp
60      emailaddressresolvejob.cpp
62      keyresolver.cpp
63      kmsubjectlineedit.cpp
66 if (NOT WINCE)
67   # disabled due to no QTreeWidget
68   set( messagecomposer_src ${messagecomposer_src}
69      distributionlistdialog.cpp
70   )
71 endif (NOT WINCE)
73 if(KDEPIM_ENTERPRISE_BUILD)
74   set(WARN_TOOMANY_RECIPIENTS_DEFAULT true)
75   set(ALLOW_SEMICOLON_AS_ADDRESS_SEPARATOR_DEFAULT true)
76 else(KDEPIM_ENTERPRISE_BUILD)
77   set(WARN_TOOMANY_RECIPIENTS_DEFAULT false)
78   set(ALLOW_SEMICOLON_AS_ADDRESS_SEPARATOR_DEFAULT false)
79 endif(KDEPIM_ENTERPRISE_BUILD)
81 configure_file(messagecomposer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messagecomposer.kcfg)
83 kde4_add_kcfg_files(messagecomposer_src
84   messagecomposersettings_base.kcfgc 
87 kde4_add_library( messagecomposer ${LIBRARY_TYPE} ${messagecomposer_src} )
88 target_link_libraries( messagecomposer ${KDE4_KIO_LIBS} ${KDEPIMLIBS_KMIME_LIBS} ${KDEPIMLIBS_AKONADI_KMIME_LIBS} ${KDEPIMLIBS_AKONADI_LIBS} ${KDEPIMLIBS_MAILTRANSPORT_LIBS} ${KDEPIMLIBS_KPIMTEXTEDIT_LIBS} ${KDEPIMLIBS_KPIMIDENTITIES_LIBS}
89  messagecore messageviewer templateparser kleo kdepim ${QGPGME_LIBRARIES} )
90 set_target_properties( messagecomposer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
92 install( TARGETS messagecomposer ${INSTALL_TARGETS_DEFAULT_ARGS} )
94 #install( TARGETS messagecomposer EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
96 #install( FILES
97 #         messagecomposer_export.h
98 #         composer.h
99 #         globalpart.h
100 #         infopart.h
101 #         messagepart.h
102 #         textpart.h
103 #         jobbase.h
104 #         contentjobbase.h
105 #         attachmentjob.h
106 #         singlepartjob.h
107 #         multipartjob.h
108 #         maintextjob.h
109 #         signjob.h
110 #         encryptjob.h
111 #         signencryptjob.h
112 #         transparentjob.h
113 #         skeletonmessagejob.h
114 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagecomposer COMPONENT Devel )