3 add_subdirectory( tests )
5 add_subdirectory( pics )
6 add_subdirectory( filters )
7 add_subdirectory( kconf_update )
11 ${CMAKE_SOURCE_DIR}/libkleo
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
34 kncollectionviewitem.cpp
38 knarticlecollection.cpp
41 kngroupselectdialog.cpp
51 knsourceviewwindow.cpp
63 knfilterconfigwidget.cpp
75 composer/attachment_view.cpp
76 composer/followupto_combobox.cpp
77 configuration/identity_widget.cpp
78 configuration/identity_edition_dialog.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}
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)