Build with non-standard boost locations.
[kdepim.git] / messagecomposer / CMakeLists.txt
blob4b6066c971d21ef7500626372f97c1af17cf0b79
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 )
7 endif ()
9 add_subdirectory( tests )
11 set( messagecomposer_src
13      composer.cpp
14      util.cpp
16      attachmentcontrollerbase.cpp
17      attachmentmodel.cpp
18      attachmentfrompublickeyjob.cpp
20      akonadisender.cpp
21      messagehelper.cpp
22      messagefactory.cpp
23      messageinfo.cpp
24      messagecomposersettings.cpp
25      composerviewbase.cpp
27      messagepart.cpp
28      globalpart.cpp
29      infopart.cpp
30      textpart.cpp
32      jobbase.cpp
33      contentjobbase.cpp
34      attachmentjob.cpp
35      singlepartjob.cpp
36      multipartjob.cpp
37      maintextjob.cpp
38      signjob.cpp
39      encryptjob.cpp
40      signencryptjob.cpp
41      transparentjob.cpp
43      skeletonmessagejob.cpp
45      kmeditor.cpp
46      inserttextfilejob.cpp
47      signaturecontroller.cpp
48      composerlineedit.cpp
49      recipient.cpp
50      distributionlistdialog.cpp
51      recipientspicker.cpp
52      recipientseditor.cpp
53      kwindowpositioner.cpp
55      aliasesexpandjob.cpp
56      emailaddressresolvejob.cpp
58      keyresolver.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 
76 include_directories(
77     ${Boost_INCLUDE_DIR}
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} )
90 #install( FILES
91 #         messagecomposer_export.h
92 #         composer.h
93 #         globalpart.h
94 #         infopart.h
95 #         messagepart.h
96 #         textpart.h
97 #         jobbase.h
98 #         contentjobbase.h
99 #         attachmentjob.h
100 #         singlepartjob.h
101 #         multipartjob.h
102 #         maintextjob.h
103 #         signjob.h
104 #         encryptjob.h
105 #         signencryptjob.h
106 #         transparentjob.h
107 #         skeletonmessagejob.h
108 #         DESTINATION ${INCLUDE_INSTALL_DIR}/messagecomposer COMPONENT Devel )