1 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
3 add_definitions( -DQT_NO_CAST_FROM_ASCII )
4 add_definitions( -DQT_NO_CAST_TO_ASCII )
5 if ( QT_QT3SUPPORT_FOUND )
6 add_definitions( -DQT_QT3SUPPORT_FOUND )
9 add_subdirectory( tests )
11 set( messagecomposer_src
16 attachmentcontrollerbase.cpp
18 attachmentfrompublickeyjob.cpp
24 messagecomposersettings.cpp
43 skeletonmessagejob.cpp
47 signaturecontroller.cpp
50 distributionlistdialog.cpp
56 emailaddressresolvejob.cpp
61 if(KDEPIM_ENTERPRISE_BUILD)
62 set(WARN_TOOMANY_RECIPIENTS_DEFAULT true)
63 set(ALLOW_SEMICOLON_AS_ADDRESS_SEPARATOR_DEFAULT true)
64 else(KDEPIM_ENTERPRISE_BUILD)
65 set(WARN_TOOMANY_RECIPIENTS_DEFAULT false)
66 set(ALLOW_SEMICOLON_AS_ADDRESS_SEPARATOR_DEFAULT false)
67 endif(KDEPIM_ENTERPRISE_BUILD)
69 configure_file(messagecomposer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messagecomposer.kcfg)
71 kde4_add_kcfg_files(messagecomposer_src
72 messagecomposersettings_base.kcfgc
78 ${CMAKE_SOURCE_DIR}/libkleo
81 kde4_add_library( messagecomposer SHARED ${messagecomposer_src} )
82 target_link_libraries( messagecomposer ${KDE4_KIO_LIBS} ${KDE4_KMIME_LIBRARY} ${KDEPIMLIBS_AKONADI_KMIME_LIBS} ${KDEPIMLIBS_AKONADI_LIBS} ${KDEPIMLIBS_MAILTRANSPORT_LIBS} ${KDEPIMLIBS_KPIMTEXTEDIT_LIBS} ${KDEPIMLIBS_KPIMIDENTITIES_LIBS}
83 messagecore messageviewer templateparser kleo kdepim ${QGPGME_LIBRARIES} )
84 set_target_properties( messagecomposer PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
86 install( TARGETS messagecomposer ${INSTALL_TARGETS_DEFAULT_ARGS} )
88 #install( TARGETS messagecomposer EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
91 # messagecomposer_export.h
107 # skeletonmessagejob.h
108 # DESTINATION ${INCLUDE_INSTALL_DIR}/messagecomposer COMPONENT Devel )