1 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
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
20 attachmentcontrollerbase.cpp
22 attachmentfrompublickeyjob.cpp
27 messagecomposersettings.cpp
46 skeletonmessagejob.cpp
50 signaturecontroller.cpp
56 recipientseditorsidewidget.cpp
60 emailaddressresolvejob.cpp
67 # disabled due to no QTreeWidget
68 set( messagecomposer_src ${messagecomposer_src}
69 distributionlistdialog.cpp
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} )
97 # messagecomposer_export.h
113 # skeletonmessagejob.h
114 # DESTINATION ${INCLUDE_INSTALL_DIR}/messagecomposer COMPONENT Devel )