more polishing
[rekonq:elproxys-rekonq.git] / src / CMakeLists.txt
1 ### ------- sub dirs -------
2
3 ADD_SUBDIRECTORY( data )
4 ADD_SUBDIRECTORY( tests )
5
6
7 ### ------- SETTING REKONQ FILES..
8
9 SET( rekonq_KDEINIT_SRCS
10     application.cpp
11     clicktoflash.cpp
12     downloaditem.cpp
13     downloadmanager.cpp
14     filterurljob.cpp
15     findbar.cpp
16     iconmanager.cpp
17     mainview.cpp
18     mainwindow.cpp
19     messagebar.cpp
20     networkaccessmanager.cpp
21     notificationbar.cpp
22     paneltreeview.cpp
23     previewselectorbar.cpp
24     protocolhandler.cpp
25     sessionmanager.cpp
26     tabbar.cpp
27     tabhighlighteffect.cpp
28     urlfilterproxymodel.cpp
29     urlpanel.cpp
30     walletbar.cpp
31     webicon.cpp
32     webinspectorpanel.cpp
33     webpage.cpp
34     webpluginfactory.cpp
35     websslinfo.cpp
36     websnap.cpp
37     webview.cpp
38     webtab.cpp
39     zoombar.cpp
40     #----------------------------------------
41     history/autosaver.cpp
42     history/historymanager.cpp
43     history/historymodels.cpp
44     history/historypanel.cpp
45     #----------------------------------------
46     settings/settingsdialog.cpp
47     settings/adblockwidget.cpp
48     settings/appearancewidget.cpp
49     settings/generalwidget.cpp
50     settings/tabswidget.cpp
51     settings/webkitwidget.cpp
52     settings/networkwidget.cpp
53     #----------------------------------------
54     bookmarks/bookmarkprovider.cpp
55     bookmarks/bookmarkspanel.cpp
56     bookmarks/bookmarkstreemodel.cpp
57     bookmarks/bookmarkscontextmenu.cpp
58     bookmarks/bookmarkstoolbar.cpp
59     bookmarks/bookmarkowner.cpp
60     #----------------------------------------
61     adblock/adblockhostmatcher.cpp
62     adblock/adblockmanager.cpp
63     adblock/adblocknetworkreply.cpp
64     adblock/adblockrule.cpp
65     adblock/adblockrulefallbackimpl.cpp
66     adblock/adblockrulenullimpl.cpp
67     adblock/adblockruletextmatchimpl.cpp
68     #----------------------------------------
69     urlbar/stackedurlbar.cpp
70     urlbar/urlbar.cpp
71     urlbar/completionwidget.cpp
72     urlbar/urlresolver.cpp
73     urlbar/listitem.cpp
74     urlbar/rsswidget.cpp
75     urlbar/bookmarkwidget.cpp
76     urlbar/webshortcutwidget.cpp
77     #----------------------------------------
78     analyzer/analyzerpanel.cpp
79     analyzer/networkanalyzer.cpp
80     #----------------------------------------
81     opensearch/searchengine.cpp
82     opensearch/opensearchwriter.cpp
83     opensearch/opensearchreader.cpp
84     opensearch/opensearchmanager.cpp
85     opensearch/opensearchengine.cpp
86     opensearch/suggestionparser.cpp
87     #----------------------------------------
88     useragent/useragentinfo.cpp
89     useragent/useragentwidget.cpp
90     #----------------------------------------
91     newtabpage/rekonqreply.cpp
92     newtabpage/tabobject.cpp
93     newtabpage/downloadtab.cpp
94     newtabpage/historytab.cpp
95     newtabpage/historyitemiterator.cpp
96     newtabpage/bookmarktab.cpp
97     newtabpage/bookmarkiterator.cpp
98     newtabpage/favoritestab.cpp
99     newtabpage/favoriteitem.cpp
100     newtabpage/bridgeutils.cpp
101 )
102
103
104 KDE4_ADD_UI_FILES( rekonq_KDEINIT_SRCS
105     settings/settings_general.ui
106     settings/settings_tabs.ui
107     settings/settings_appearance.ui
108     settings/settings_webkit.ui
109     settings/settings_adblock.ui
110     cleardata.ui
111     useragent/useragentsettings.ui
112  )
113
114 KDE4_ADD_KCFG_FILES( rekonq_KDEINIT_SRCS rekonq.kcfgc )
115
116
117 ### ------------- INCLUDING DIRECTORIES...
118
119 INCLUDE_DIRECTORIES (   ${CMAKE_CURRENT_SOURCE_DIR}
120                         ${CMAKE_CURRENT_SOURCE_DIR}/adblock
121                         ${CMAKE_CURRENT_SOURCE_DIR}/analyzer
122                         ${CMAKE_CURRENT_SOURCE_DIR}/bookmarks
123                         ${CMAKE_CURRENT_SOURCE_DIR}/history
124                         ${CMAKE_CURRENT_SOURCE_DIR}/newtabpage
125                         ${CMAKE_CURRENT_SOURCE_DIR}/opensearch
126                         ${CMAKE_CURRENT_SOURCE_DIR}/rekonqpage
127                         ${CMAKE_CURRENT_SOURCE_DIR}/settings
128                         ${CMAKE_CURRENT_SOURCE_DIR}/urlbar
129                         ${CMAKE_CURRENT_SOURCE_DIR}/useragent
130                         ${CMAKE_CURRENT_BINARY_DIR}
131                         ${KDE4_INCLUDES}
132                         ${QT4_INCLUDES}
133 )
134
135
136 ### -------------- ADDING DEFINITIONS...
137
138 ADD_DEFINITIONS ( ${KDE4_DEFINITIONS} )
139
140 ### --------------- ADDING EXECUTABLE...
141
142 KDE4_ADD_KDEINIT_EXECUTABLE( rekonq ${rekonq_KDEINIT_SRCS} main.cpp )
143
144
145 ### --------------- TARGETTING LINK LIBRARIES...
146
147 TARGET_LINK_LIBRARIES ( kdeinit_rekonq
148                         ${QT_LIBRARIES}
149                         ${QT_QTSCRIPT_LIBRARY}
150                         ${QT_QTWEBKIT_LIBRARY}
151                         ${KDE4_KDEWEBKIT_LIBS}
152                         ${KDE4_KUTILS_LIBS}
153                         ${KDE4_KDEUI_LIBS}
154                         ${KDE4_KIO_LIBS}
155                         ${KDE4_KPARTS_LIBS}
156                         ${KDE4_THREADWEAVER_LIBRARIES}
157 )
158
159
160 ### ------------ INSTALL FILES...
161
162 INSTALL( TARGETS rekonq ${INSTALL_TARGETS_DEFAULT_ARGS} )
163 INSTALL( TARGETS kdeinit_rekonq  ${INSTALL_TARGETS_DEFAULT_ARGS} )
164
165 INSTALL( FILES rekonq.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
166 INSTALL( FILES rekonqui.rc  DESTINATION  ${DATA_INSTALL_DIR}/rekonq )