summaryrefslogtreecommitdiffstats
path: root/akregator/src/CMakeLists.txt
blob: 4ade48f79b270b32ce075a956486f6a392511157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

tde_import( libkmime)
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )

add_subdirectory( librss )
add_subdirectory( about )
add_subdirectory( mk4storage )
add_subdirectory( pics )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/libkdepim
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### headers ###################################

install( FILES
    plugin.h articleinterceptor.h akregator_export.h storage.h
    feedstorage.h storagefactory.h storagefactoryregistry.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/kde/akregator )


##### other data ################################

tde_install_icons( )

install( FILES
    akregator.desktop
  DESTINATION ${XDG_APPS_INSTALL_DIR} )

install( FILES
    akregator.kcfg
  DESTINATION ${KCFG_INSTALL_DIR} )

install( FILES
    akregator_part.desktop feed.protocol
  DESTINATION ${SERVICES_INSTALL_DIR} )

install( FILES
    akregator_plugin.desktop
  DESTINATION ${SERVICETYPES_INSTALL_DIR} )

install( FILES
    akregator_shell.rc articleviewer.rc eventsrc
    pageviewer.rc akregator_part.rc
  DESTINATION ${DATA_INSTALL_DIR}/akregator )


##### akregatorprivate (shared) #################

tde_add_library( akregatorprivate SHARED AUTOMOC
  SOURCES
    aboutdata.cpp akregatorconfig.kcfgc article.cpp
    articlefilter.cpp articleinterceptor.cpp dragobjects.cpp
    feed.cpp feediconmanager.cpp feediconmanager.skel
    feedlist.cpp feedstoragedummyimpl.cpp fetchqueue.cpp
    folder.cpp nodelist.cpp plugin.cpp pluginmanager.cpp
    simplenodeselector.cpp storage.cpp storagedummyimpl.cpp
    storagefactorydummyimpl.cpp storagefactoryregistry.cpp
    tag.cpp tagfolder.cpp tagnode.cpp tagnodelist.cpp
    tagset.cpp trayicon.cpp treenode.cpp treenodevisitor.cpp
    utils.cpp
  VERSION 0.0.0
  LINK rsslocal-static kio-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


##### akregator (executable) ####################

tde_add_executable( akregator AUTOMOC
  SOURCES main.cpp mainwindow.cpp
  LINK akregatorprivate-shared kdepim-shared kparts-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### libakregatorpart (module) #################

tde_add_kpart( libakregatorpart AUTOMOC
  SOURCES
    actionmanager.cpp actionmanagerimpl.cpp
    addfeeddialog.cpp addfeedwidgetbase.ui
    akregator_part.cpp akregator_partiface.skel
    akregator_run.cpp akregator_view.cpp articlelistview.cpp
    articleviewer.cpp configdialog.cpp feeditem.cpp
    feedlistview.cpp folderitem.cpp frame.cpp kernel.cpp
    notificationmanager.cpp pageviewer.cpp progressmanager.cpp
    propertiesdialog.cpp propertieswidgetbase.ui searchbar.cpp
    settings_advancedbase.ui settings_advanced.cpp
    settings_appearance.ui settings_archive.ui
    settings_browser.ui settings_general.ui speechclient.cpp
    tabwidget.cpp tagaction.cpp tagfolderitem.cpp
    tagnodeitem.cpp tagpropertiesdialog.cpp
    tagpropertieswidgetbase.ui treenodeitem.cpp
    viewer.cpp ${TDE_INCLUDE_DIR}/kspeechsink.skel
    ${TDE_INCLUDE_DIR}/kspeech.stub listtabwidget.cpp
  LINK akregatorprivate-shared kdepim-shared khtml-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)