1 find_package(Qt6 ${minQt6Version} REQUIRED COMPONENTS Widgets Svg)
3 # CMAKE_AUTO_UI causes unnecessary rebuilds
7 addtorrentparamswidget.ui
8 autoexpandabledialog.ui
9 banlistoptionsdialog.ui
11 deletionconfirmationdialog.ui
12 downloadfromurldialog.ui
14 ipsubnetwhitelistoptionsdialog.ui
17 previewselectdialog.ui
18 properties/peersadditiondialog.ui
19 properties/propertieswidget.ui
20 rss/automatedrssdownloader.ui
22 search/pluginselectdialog.ui
23 search/pluginsourcedialog.ui
24 search/searchjobwidget.ui
25 search/searchwidget.ui
26 shutdownconfirmdialog.ui
29 torrentcategorydialog.ui
30 torrentcreatordialog.ui
31 torrentoptionsdialog.ui
32 torrentsharelimitswidget.ui
34 trackerentriesdialog.ui
35 trackersadditiondialog.ui
37 watchedfolderoptionsdialog.ui
40 add_library(qbt_gui STATIC
44 addtorrentparamswidget.h
46 autoexpandabledialog.h
47 banlistoptionsdialog.h
51 deletionconfirmationdialog.h
53 downloadfromurldialog.h
58 guiaddtorrentmanager.h
59 guiapplicationcomponent.h
61 interfaces/iguiapplication.h
62 ipsubnetwhitelistoptionsdialog.h
69 powermanagement/powermanagement.h
73 properties/downloadedpiecesbar.h
74 properties/peerlistsortmodel.h
75 properties/peerlistwidget.h
76 properties/peersadditiondialog.h
77 properties/pieceavailabilitybar.h
78 properties/piecesbar.h
79 properties/propertieswidget.h
80 properties/proptabbar.h
81 properties/speedplotview.h
82 properties/speedwidget.h
84 rss/articlelistwidget.h
85 rss/automatedrssdownloader.h
89 search/pluginselectdialog.h
90 search/pluginsourcedialog.h
91 search/searchjobwidget.h
92 search/searchsortmodel.h
94 shutdownconfirmdialog.h
98 torrentcategorydialog.h
99 torrentcontentfiltermodel.h
100 torrentcontentitemdelegate.h
101 torrentcontentmodel.h
102 torrentcontentmodelfile.h
103 torrentcontentmodelfolder.h
104 torrentcontentmodelitem.h
105 torrentcontentwidget.h
106 torrentcreatordialog.h
107 torrentoptionsdialog.h
108 torrentsharelimitswidget.h
110 trackerentriesdialog.h
111 trackerlist/trackerlistitemdelegate.h
112 trackerlist/trackerlistmodel.h
113 trackerlist/trackerlistsortmodel.h
114 trackerlist/trackerlistwidget.h
115 trackersadditiondialog.h
116 transferlistdelegate.h
117 transferlistfilters/basefilterwidget.h
118 transferlistfilters/categoryfiltermodel.h
119 transferlistfilters/categoryfilterproxymodel.h
120 transferlistfilters/categoryfilterwidget.h
121 transferlistfilters/statusfilterwidget.h
122 transferlistfilters/tagfiltermodel.h
123 transferlistfilters/tagfilterproxymodel.h
124 transferlistfilters/tagfilterwidget.h
125 transferlistfilters/trackersfilterwidget.h
126 transferlistfilterswidget.h
128 transferlistsortmodel.h
137 watchedfolderoptionsdialog.h
138 watchedfoldersmodel.h
143 addnewtorrentdialog.cpp
144 addtorrentparamswidget.cpp
146 autoexpandabledialog.cpp
147 banlistoptionsdialog.cpp
150 deletionconfirmationdialog.cpp
151 desktopintegration.cpp
152 downloadfromurldialog.cpp
153 executionlogwidget.cpp
157 guiaddtorrentmanager.cpp
159 ipsubnetwhitelistoptionsdialog.cpp
161 log/logfiltermodel.cpp
166 powermanagement/powermanagement.cpp
167 previewlistdelegate.cpp
168 previewselectdialog.cpp
169 progressbarpainter.cpp
170 properties/downloadedpiecesbar.cpp
171 properties/peerlistsortmodel.cpp
172 properties/peerlistwidget.cpp
173 properties/peersadditiondialog.cpp
174 properties/pieceavailabilitybar.cpp
175 properties/piecesbar.cpp
176 properties/propertieswidget.cpp
177 properties/proptabbar.cpp
178 properties/speedplotview.cpp
179 properties/speedwidget.cpp
181 rss/articlelistwidget.cpp
182 rss/automatedrssdownloader.cpp
183 rss/feedlistwidget.cpp
186 search/pluginselectdialog.cpp
187 search/pluginsourcedialog.cpp
188 search/searchjobwidget.cpp
189 search/searchsortmodel.cpp
190 search/searchwidget.cpp
191 shutdownconfirmdialog.cpp
195 torrentcategorydialog.cpp
196 torrentcontentfiltermodel.cpp
197 torrentcontentitemdelegate.cpp
198 torrentcontentmodel.cpp
199 torrentcontentmodelfile.cpp
200 torrentcontentmodelfolder.cpp
201 torrentcontentmodelitem.cpp
202 torrentcontentwidget.cpp
203 torrentcreatordialog.cpp
204 torrentoptionsdialog.cpp
205 torrentsharelimitswidget.cpp
206 torrenttagsdialog.cpp
207 trackerentriesdialog.cpp
208 trackerlist/trackerlistitemdelegate.cpp
209 trackerlist/trackerlistmodel.cpp
210 trackerlist/trackerlistsortmodel.cpp
211 trackerlist/trackerlistwidget.cpp
212 trackersadditiondialog.cpp
213 transferlistdelegate.cpp
214 transferlistfilters/basefilterwidget.cpp
215 transferlistfilters/categoryfiltermodel.cpp
216 transferlistfilters/categoryfilterproxymodel.cpp
217 transferlistfilters/categoryfilterwidget.cpp
218 transferlistfilters/statusfilterwidget.cpp
219 transferlistfilters/tagfiltermodel.cpp
220 transferlistfilters/tagfilterproxymodel.cpp
221 transferlistfilters/tagfilterwidget.cpp
222 transferlistfilters/trackersfilterwidget.cpp
223 transferlistfilterswidget.cpp
224 transferlistmodel.cpp
225 transferlistsortmodel.cpp
226 transferlistwidget.cpp
233 watchedfolderoptionsdialog.cpp
234 watchedfoldersmodel.cpp
236 # generated .ui headers
240 target_sources(qbt_gui INTERFACE about.qrc)
242 # UI headers will be generated in ${CMAKE_CURRENT_BINARY_DIR}
243 target_include_directories(qbt_gui PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
245 target_link_libraries(qbt_gui
253 target_sources(qbt_gui PRIVATE
254 notifications/dbusnotifier.h
255 notifications/dbusnotifier.cpp
256 notifications/dbusnotificationsinterface.h
257 notifications/dbusnotificationsinterface.cpp
258 powermanagement/powermanagement_x11.h
259 powermanagement/powermanagement_x11.cpp
264 qt_wrap_ui(STACKTRACE_UI_HEADERS stacktracedialog.ui)
266 target_sources(qbt_gui PRIVATE
269 ${STACKTRACE_UI_HEADERS}
273 if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
274 target_sources(qbt_gui PRIVATE
280 if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
281 target_sources(qbt_gui PRIVATE
282 macosdockbadge/badger.h
283 macosdockbadge/badger.mm
284 macosdockbadge/badgeview.h
285 macosdockbadge/badgeview.mm
289 target_link_libraries(qbt_gui PRIVATE objc)