3 add_subdirectory( tests )
5 add_subdirectory( pics )
6 add_subdirectory( filters )
7 add_subdirectory( kconf_update )
11 ${CMAKE_SOURCE_DIR}/libkleo
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
37 kncollectionviewitem.cpp
41 knarticlecollection.cpp
44 kngroupselectdialog.cpp
54 knsourceviewwindow.cpp
66 knfilterconfigwidget.cpp
78 composer/attachment_view.cpp
79 composer/followupto_combobox.cpp
80 configuration/identity_widget.cpp
81 configuration/identity_edition_dialog.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}
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)