Factor out the shared parts of the agent action manager setup.
[kdepim.git] / knode / CMakeLists.txt
bloba62dab40de7efa52e2f8148455b12f0fd86898eb
1 project(knode)
3 add_subdirectory( tests )
5 add_subdirectory( pics )
6 add_subdirectory( filters )
7 add_subdirectory( kconf_update )
9 include_directories(
10   ${KDE4_INCLUDE_DIR}
11   ${CMAKE_SOURCE_DIR}/libkleo
12   ${Boost_INCLUDE_DIR}
15 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
16 add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5003 )
18 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
21 ########### next target ###############
23 set(knodecommon_LIB_SRCS
24    knconfigmanager.cpp
25    knconfig.cpp
26    knconfigwidgets.cpp
27    settings.cpp
28    scheduler.cpp
29    knjobdata.cpp
30    mailsendjob.cpp
31    nntpjobs.cpp
32    knaccountmanager.cpp
33    kncollection.cpp
34    kncollectionviewitem.cpp
35    knserverinfo.cpp
36    knnntpaccount.cpp
37    kngroupmanager.cpp
38    knarticlecollection.cpp
39    kngroup.cpp
40    kngroupbrowser.cpp
41    kngroupselectdialog.cpp
42    kngroupdialog.cpp
43    kngrouppropdlg.cpp
44    knfoldermanager.cpp
45    knfolder.cpp
46    knmemorymanager.cpp
47    kncleanup.cpp
48    knarticlemanager.cpp
49    knarticle.cpp
50    kndisplayedheader.cpp
51    knsourceviewwindow.cpp
52    knarticlewindow.cpp
53    knhdrviewitem.cpp
54    kncomposer.cpp
55    kncomposerview.cpp
56    kncomposereditor.cpp
57    knarticlefactory.cpp
58    knfiltermanager.cpp
59    knstatusfilter.cpp
60    knstringfilter.cpp
61    knrangefilter.cpp
62    knarticlefilter.cpp
63    knfilterconfigwidget.cpp
64    knfilterdialog.cpp
65    knsearchdialog.cpp
66    utilities.cpp
67    knscoring.cpp
68    headerview.cpp
69    knmainwidget.cpp
70    aboutdata.cpp
71    knglobals.cpp
72    kncollectionview.cpp
73    articlewidget.cpp
74    csshelper.cpp
75    composer/attachment_view.cpp
76    composer/followupto_combobox.cpp
77    configuration/identity_widget.cpp
78    configuration/identity_edition_dialog.cpp
79    utils/locale.cpp
80    utils/startup.cpp
81    kscoring.cpp
82    kscoringeditor.cpp
83    treewidget.cpp
84    foldertreewidget.cpp
87 qt4_add_dbus_adaptor( knodecommon_LIB_SRCS org.kde.knode.xml knmainwidget.h KNMainWidget)
91 kde4_add_ui_files(knodecommon_LIB_SRCS
92    nntpaccountdialog_base.ui
93    nntpaccountlistwidget_base.ui
94    readnewsgeneralwidget_base.ui
95    readnewsnavigationwidget_base.ui
96    readnewsviewerwidget_base.ui
97    postnewstechnicalwidget_base.ui
98    postnewscomposerwidget_base.ui
99    composer/composer_view.ui
100    configuration/identity_widget.ui
101    configuration/identity_edition_dialog.ui
104 kde4_add_kcfg_files(knodecommon_LIB_SRCS settings_base.kcfgc )
106 kde4_add_library(knodecommon ${LIBRARY_TYPE} ${knodecommon_LIB_SRCS})
108 target_link_libraries(knodecommon
109   ${KDEPIMLIBS_KMIME_LIBS} ${KDE4_KCMUTILS_LIBS} ${KDE4_KIO_LIBS}
110   ${KDE4_KDE3SUPPORT_LIBS} ${KDEPIMLIBS_KABC_LIBS} ${KDE4_KHTML_LIBS}
111   ${KDEPIMLIBS_KPIMUTILS_LIBS} ${KDEPIMLIBS_MAILTRANSPORT_LIBS}
112   ${KDEPIMLIBS_KONTACTINTERFACE_LIBS}
113   kleo
114   kdepim kpgp
115   messagecomposer
116   messageviewer
119 target_link_libraries(knodecommon LINK_INTERFACE_LIBRARIES ${KDE4_KCMUTILS_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KDE3SUPPORT_LIBS})
121 set_target_properties(knodecommon
122    PROPERTIES VERSION ${GENERIC_LIB_VERSION}
123    SOVERSION ${GENERIC_LIB_SOVERSION}
125 install(TARGETS knodecommon ${INSTALL_TARGETS_DEFAULT_ARGS})
128 ########### next target ###############
130 set(kcm_knode_PART_SRCS knconfigpages.cpp )
133 kde4_add_plugin(kcm_knode ${kcm_knode_PART_SRCS})
137 target_link_libraries(kcm_knode  ${KDE4_KDECORE_LIBS} knodecommon )
139 install(TARGETS kcm_knode  DESTINATION ${PLUGIN_INSTALL_DIR})
142 ########### next target ###############
144 set(knodepart_PART_SRCS knode_part.cpp )
147 kde4_add_plugin(knodepart ${knodepart_PART_SRCS})
151 target_link_libraries(knodepart  ${KDE4_KPARTS_LIBS} knodecommon )
153 install(TARGETS knodepart  DESTINATION ${PLUGIN_INSTALL_DIR})
156 ########### next target ###############
158 set(knode_SRCS knode.cpp knapplication.cpp main.cpp )
160 kde4_add_app_icon(knode_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/hi*-apps-knode.png")
162 kde4_add_executable(knode ${knode_SRCS})
164 target_link_libraries(knode ${KDE4_KDECORE_LIBS} ${KDEPIMLIBS_KONTACTINTERFACE_LIBS} kdepim knodecommon)
166 install(TARGETS knode  ${INSTALL_TARGETS_DEFAULT_ARGS} )
169 ########### install files ###############
171 install( FILES knewsservice.protocol  DESTINATION ${SERVICES_INSTALL_DIR})
172 install( PROGRAMS KNode.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR})
173 install( FILES knode_config_identity.desktop knode_config_accounts.desktop knode_config_appearance.desktop knode_config_read_news.desktop knode_config_post_news.desktop knode_config_privacy.desktop knode_config_cleanup.desktop  DESTINATION ${SERVICES_INSTALL_DIR})
174 install( FILES headers.rc knodeui.rc knreaderui.rc kncomposerui.rc  DESTINATION ${DATA_INSTALL_DIR}/knode)
175 install(FILES org.kde.knode.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
177 add_subdirectory(icons)