french -> French
[kdepim.git] / knode / CMakeLists.txt
blob34f2c539bb46f1d09ccde08f94f74c3c732c9558
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}
13   ${CMAKE_SOURCE_DIR}/messageviewer
14   ${CMAKE_SOURCE_DIR}/libkdepim/
15   ${CMAKE_SOURCE_DIR}/messagecomposer
18 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
19 add_definitions( -DKDE_DEFAULT_DEBUG_AREA=5003 )
21 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
24 ########### next target ###############
26 set(knodecommon_LIB_SRCS
27    knconfigmanager.cpp
28    knconfig.cpp
29    knconfigwidgets.cpp
30    settings.cpp
31    scheduler.cpp
32    knjobdata.cpp
33    mailsendjob.cpp
34    nntpjobs.cpp
35    knaccountmanager.cpp
36    kncollection.cpp
37    kncollectionviewitem.cpp
38    knserverinfo.cpp
39    knnntpaccount.cpp
40    kngroupmanager.cpp
41    knarticlecollection.cpp
42    kngroup.cpp
43    kngroupbrowser.cpp
44    kngroupselectdialog.cpp
45    kngroupdialog.cpp
46    kngrouppropdlg.cpp
47    knfoldermanager.cpp
48    knfolder.cpp
49    knmemorymanager.cpp
50    kncleanup.cpp
51    knarticlemanager.cpp
52    knarticle.cpp
53    kndisplayedheader.cpp
54    knsourceviewwindow.cpp
55    knarticlewindow.cpp
56    knhdrviewitem.cpp
57    kncomposer.cpp
58    kncomposerview.cpp
59    kncomposereditor.cpp
60    knarticlefactory.cpp
61    knfiltermanager.cpp
62    knstatusfilter.cpp
63    knstringfilter.cpp
64    knrangefilter.cpp
65    knarticlefilter.cpp
66    knfilterconfigwidget.cpp
67    knfilterdialog.cpp
68    knsearchdialog.cpp
69    utilities.cpp
70    knscoring.cpp
71    headerview.cpp
72    knmainwidget.cpp
73    aboutdata.cpp
74    knglobals.cpp
75    kncollectionview.cpp
76    articlewidget.cpp
77    csshelper.cpp
78    composer/attachment_view.cpp
79    composer/followupto_combobox.cpp
80    configuration/identity_widget.cpp
81    configuration/identity_edition_dialog.cpp
82    utils/locale.cpp
83    utils/startup.cpp
84    kscoring.cpp
85    kscoringeditor.cpp
86    treewidget.cpp
87    foldertreewidget.cpp
90 qt4_add_dbus_adaptor( knodecommon_LIB_SRCS org.kde.knode.xml knmainwidget.h KNMainWidget)
94 kde4_add_ui_files(knodecommon_LIB_SRCS
95    nntpaccountdialog_base.ui
96    nntpaccountlistwidget_base.ui
97    readnewsgeneralwidget_base.ui
98    readnewsnavigationwidget_base.ui
99    readnewsviewerwidget_base.ui
100    postnewstechnicalwidget_base.ui
101    postnewscomposerwidget_base.ui
102    composer/composer_view.ui
103    configuration/identity_widget.ui
104    configuration/identity_edition_dialog.ui
107 kde4_add_kcfg_files(knodecommon_LIB_SRCS settings_base.kcfgc )
109 kde4_add_library(knodecommon ${LIBRARY_TYPE} ${knodecommon_LIB_SRCS})
111 target_link_libraries(knodecommon
112   ${KDEPIMLIBS_KMIME_LIBS} ${KDE4_KCMUTILS_LIBS} ${KDE4_KIO_LIBS}
113   ${KDE4_KDE3SUPPORT_LIBS} ${KDEPIMLIBS_KABC_LIBS} ${KDE4_KHTML_LIBS}
114   ${KDEPIMLIBS_KPIMUTILS_LIBS} ${KDEPIMLIBS_MAILTRANSPORT_LIBS}
115   ${KDEPIMLIBS_KONTACTINTERFACE_LIBS}
116   kleo
117   kdepim kpgp
118   messagecomposer
119   messageviewer
122 target_link_libraries(knodecommon LINK_INTERFACE_LIBRARIES ${KDE4_KCMUTILS_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KDE3SUPPORT_LIBS})
124 set_target_properties(knodecommon
125    PROPERTIES VERSION ${GENERIC_LIB_VERSION}
126    SOVERSION ${GENERIC_LIB_SOVERSION}
128 install(TARGETS knodecommon ${INSTALL_TARGETS_DEFAULT_ARGS})
131 ########### next target ###############
133 set(kcm_knode_PART_SRCS knconfigpages.cpp )
136 kde4_add_plugin(kcm_knode ${kcm_knode_PART_SRCS})
140 target_link_libraries(kcm_knode  ${KDE4_KDECORE_LIBS} knodecommon )
142 install(TARGETS kcm_knode  DESTINATION ${PLUGIN_INSTALL_DIR})
145 ########### next target ###############
147 set(knodepart_PART_SRCS knode_part.cpp )
150 kde4_add_plugin(knodepart ${knodepart_PART_SRCS})
154 target_link_libraries(knodepart  ${KDE4_KPARTS_LIBS} knodecommon )
156 install(TARGETS knodepart  DESTINATION ${PLUGIN_INSTALL_DIR})
159 ########### next target ###############
161 set(knode_SRCS knode.cpp knapplication.cpp main.cpp )
163 kde4_add_app_icon(knode_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/hi*-apps-knode.png")
165 kde4_add_executable(knode ${knode_SRCS})
167 target_link_libraries(knode ${KDE4_KDECORE_LIBS} ${KDEPIMLIBS_KONTACTINTERFACE_LIBS} kdepim knodecommon)
169 install(TARGETS knode  ${INSTALL_TARGETS_DEFAULT_ARGS} )
172 ########### install files ###############
174 install( PROGRAMS KNode.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR})
175 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})
176 install( FILES headers.rc knodeui.rc knreaderui.rc kncomposerui.rc  DESTINATION ${DATA_INSTALL_DIR}/knode)
177 install(FILES org.kde.knode.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
179 add_subdirectory(icons)