Fix highlighting of the last character
[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     filterurljob.cpp
13     findbar.cpp
14     iconmanager.cpp
15     mainview.cpp
16     mainwindow.cpp
17     messagebar.cpp
18     networkaccessmanager.cpp
19     newtabpage.cpp
20     notificationbar.cpp
21     paneltreeview.cpp
22     previewselectorbar.cpp
23     protocolhandler.cpp
24     sessionmanager.cpp
25     tabbar.cpp
26     urlfilterproxymodel.cpp
27     urlpanel.cpp
28     walletbar.cpp
29     webicon.cpp
30     webinspectorpanel.cpp
31     webpage.cpp
32     webpluginfactory.cpp
33     websslinfo.cpp
34     websnap.cpp
35     webview.cpp
36     webtab.cpp
37     zoombar.cpp
38     #----------------------------------------
39     history/autosaver.cpp
40     history/historymanager.cpp
41     history/historymodels.cpp
42     history/historypanel.cpp
43     #----------------------------------------
44     settings/settingsdialog.cpp
45     settings/adblockwidget.cpp
46     settings/appearancewidget.cpp
47     settings/generalwidget.cpp
48     settings/tabswidget.cpp
49     settings/webkitwidget.cpp
50     settings/networkwidget.cpp
51     #----------------------------------------
52     bookmarks/bookmarkprovider.cpp
53     bookmarks/bookmarkspanel.cpp
54     bookmarks/bookmarkstreemodel.cpp
55     bookmarks/bookmarkscontextmenu.cpp
56     bookmarks/bookmarkstoolbar.cpp
57     bookmarks/bookmarkowner.cpp
58     #----------------------------------------
59     adblock/adblockhostmatcher.cpp
60     adblock/adblockmanager.cpp
61     adblock/adblocknetworkreply.cpp
62     adblock/adblockrule.cpp
63     adblock/adblockrulefallbackimpl.cpp
64     adblock/adblockruletextmatchimpl.cpp
65     #----------------------------------------
66     urlbar/stackedurlbar.cpp
67     urlbar/urlbar.cpp
68     urlbar/completionwidget.cpp
69     urlbar/urlresolver.cpp
70     urlbar/listitem.cpp
71     urlbar/rsswidget.cpp
72     urlbar/bookmarkwidget.cpp
73     #----------------------------------------
74     analyzer/analyzerpanel.cpp
75     analyzer/networkanalyzer.cpp
76     #----------------------------------------
77     opensearch/searchengine.cpp
78     opensearch/opensearchwriter.cpp
79     opensearch/opensearchreader.cpp
80     opensearch/opensearchmanager.cpp
81     opensearch/opensearchengine.cpp
82 )
83
84
85 KDE4_ADD_UI_FILES( rekonq_KDEINIT_SRCS
86     settings/settings_general.ui
87     settings/settings_tabs.ui
88     settings/settings_appearance.ui
89     settings/settings_webkit.ui
90     settings/settings_adblock.ui
91     cleardata.ui
92  )
93
94 KDE4_ADD_KCFG_FILES( rekonq_KDEINIT_SRCS rekonq.kcfgc )
95
96
97 ### ------------- INCLUDING DIRECTORIES...
98
99 INCLUDE_DIRECTORIES (   ${CMAKE_CURRENT_SOURCE_DIR}
100                         ${CMAKE_CURRENT_SOURCE_DIR}/adblock
101                         ${CMAKE_CURRENT_SOURCE_DIR}/urlbar
102                         ${CMAKE_CURRENT_SOURCE_DIR}/bookmarks
103                         ${CMAKE_CURRENT_SOURCE_DIR}/history
104                         ${CMAKE_CURRENT_SOURCE_DIR}/rekonqpage
105                         ${CMAKE_CURRENT_SOURCE_DIR}/settings
106                         ${CMAKE_CURRENT_SOURCE_DIR}/analyzer
107                         ${CMAKE_CURRENT_SOURCE_DIR}/opensearch
108                         ${CMAKE_CURRENT_BINARY_DIR}
109                         ${KDE4_INCLUDES}
110                         ${QT4_INCLUDES}
111 )
112
113
114 ### -------------- ADDING DEFINITIONS...
115
116 ADD_DEFINITIONS ( ${KDE4_DEFINITIONS} )
117
118 ### --------------- ADDING EXECUTABLE...
119
120 KDE4_ADD_KDEINIT_EXECUTABLE( rekonq ${rekonq_KDEINIT_SRCS} main.cpp )
121
122
123 ### --------------- TARGETTING LINK LIBRARIES...
124
125 TARGET_LINK_LIBRARIES ( kdeinit_rekonq
126                         ${QT_LIBRARIES}
127                         ${QT_QTSCRIPT_LIBRARY}
128                         ${QT_QTWEBKIT_LIBRARY}
129                         ${KDE4_KDEWEBKIT_LIBS}
130                         ${KDE4_KUTILS_LIBS}
131                         ${KDE4_KDEUI_LIBS}
132                         ${KDE4_KIO_LIBS}
133                         ${KDE4_KPARTS_LIBS}
134                         ${KDE4_THREADWEAVER_LIBRARIES}
135 )
136
137
138 ### ------------ INSTALL FILES...
139
140 INSTALL( TARGETS rekonq ${INSTALL_TARGETS_DEFAULT_ARGS} )
141 INSTALL( TARGETS kdeinit_rekonq  ${INSTALL_TARGETS_DEFAULT_ARGS} )
142
143 INSTALL( FILES rekonq.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
144 INSTALL( FILES rekonqui.rc  DESTINATION  ${DATA_INSTALL_DIR}/rekonq )