Sync translations from Transifex and run lupdate
[qBittorrent.git] / src / gui / CMakeLists.txt
blob78e8997982ce5a5234b5cbe4d7acfbbfd64798cf
1 add_library(qbt_gui STATIC
2     # headers
3     aboutdialog.h
4     addnewtorrentdialog.h
5     advancedsettings.h
6     autoexpandabledialog.h
7     banlistoptionsdialog.h
8     categoryfiltermodel.h
9     categoryfilterproxymodel.h
10     categoryfilterwidget.h
11     cookiesdialog.h
12     cookiesmodel.h
13     deletionconfirmationdialog.h
14     downloadfromurldialog.h
15     executionlogwidget.h
16     fspathedit.h
17     fspathedit_p.h
18     hidabletabwidget.h
19     ipsubnetwhitelistoptionsdialog.h
20     lineedit.h
21     log/logfiltermodel.h
22     log/loglistview.h
23     log/logmodel.h
24     mainwindow.h
25     optionsdialog.h
26     powermanagement/powermanagement.h
27     previewlistdelegate.h
28     previewselectdialog.h
29     progressbarpainter.h
30     properties/downloadedpiecesbar.h
31     properties/peerlistsortmodel.h
32     properties/peerlistwidget.h
33     properties/peersadditiondialog.h
34     properties/pieceavailabilitybar.h
35     properties/piecesbar.h
36     properties/propertieswidget.h
37     properties/proplistdelegate.h
38     properties/proptabbar.h
39     properties/speedplotview.h
40     properties/speedwidget.h
41     properties/trackerlistwidget.h
42     properties/trackersadditiondialog.h
43     raisedmessagebox.h
44     rss/articlelistwidget.h
45     rss/automatedrssdownloader.h
46     rss/feedlistwidget.h
47     rss/htmlbrowser.h
48     rss/rsswidget.h
49     search/pluginselectdialog.h
50     search/pluginsourcedialog.h
51     search/searchjobwidget.h
52     search/searchsortmodel.h
53     search/searchwidget.h
54     shutdownconfirmdialog.h
55     speedlimitdialog.h
56     statsdialog.h
57     statusbar.h
58     tagfiltermodel.h
59     tagfilterproxymodel.h
60     tagfilterwidget.h
61     torrentcategorydialog.h
62     torrentcontentfiltermodel.h
63     torrentcontentmodel.h
64     torrentcontentmodelfile.h
65     torrentcontentmodelfolder.h
66     torrentcontentmodelitem.h
67     torrentcontenttreeview.h
68     torrentcreatordialog.h
69     torrentoptionsdialog.h
70     trackerentriesdialog.h
71     transferlistdelegate.h
72     transferlistfilterswidget.h
73     transferlistmodel.h
74     transferlistsortmodel.h
75     transferlistwidget.h
76     tristateaction.h
77     tristatewidget.h
78     uithememanager.h
79     utils.h
80     watchedfolderoptionsdialog.h
81     watchedfoldersmodel.h
83     # sources
84     aboutdialog.cpp
85     addnewtorrentdialog.cpp
86     advancedsettings.cpp
87     autoexpandabledialog.cpp
88     banlistoptionsdialog.cpp
89     categoryfiltermodel.cpp
90     categoryfilterproxymodel.cpp
91     categoryfilterwidget.cpp
92     cookiesdialog.cpp
93     cookiesmodel.cpp
94     deletionconfirmationdialog.cpp
95     downloadfromurldialog.cpp
96     executionlogwidget.cpp
97     fspathedit.cpp
98     fspathedit_p.cpp
99     hidabletabwidget.cpp
100     ipsubnetwhitelistoptionsdialog.cpp
101     lineedit.cpp
102     log/logfiltermodel.cpp
103     log/loglistview.cpp
104     log/logmodel.cpp
105     mainwindow.cpp
106     optionsdialog.cpp
107     powermanagement/powermanagement.cpp
108     previewlistdelegate.cpp
109     previewselectdialog.cpp
110     progressbarpainter.cpp
111     properties/downloadedpiecesbar.cpp
112     properties/peerlistsortmodel.cpp
113     properties/peerlistwidget.cpp
114     properties/peersadditiondialog.cpp
115     properties/pieceavailabilitybar.cpp
116     properties/piecesbar.cpp
117     properties/propertieswidget.cpp
118     properties/proplistdelegate.cpp
119     properties/proptabbar.cpp
120     properties/speedplotview.cpp
121     properties/speedwidget.cpp
122     properties/trackerlistwidget.cpp
123     properties/trackersadditiondialog.cpp
124     raisedmessagebox.cpp
125     rss/articlelistwidget.cpp
126     rss/automatedrssdownloader.cpp
127     rss/feedlistwidget.cpp
128     rss/htmlbrowser.cpp
129     rss/rsswidget.cpp
130     search/pluginselectdialog.cpp
131     search/pluginsourcedialog.cpp
132     search/searchjobwidget.cpp
133     search/searchsortmodel.cpp
134     search/searchwidget.cpp
135     shutdownconfirmdialog.cpp
136     speedlimitdialog.cpp
137     statsdialog.cpp
138     statusbar.cpp
139     tagfiltermodel.cpp
140     tagfilterproxymodel.cpp
141     tagfilterwidget.cpp
142     torrentcategorydialog.cpp
143     torrentcontentfiltermodel.cpp
144     torrentcontentmodel.cpp
145     torrentcontentmodelfile.cpp
146     torrentcontentmodelfolder.cpp
147     torrentcontentmodelitem.cpp
148     torrentcontenttreeview.cpp
149     torrentcreatordialog.cpp
150     torrentoptionsdialog.cpp
151     trackerentriesdialog.cpp
152     transferlistdelegate.cpp
153     transferlistfilterswidget.cpp
154     transferlistmodel.cpp
155     transferlistsortmodel.cpp
156     transferlistwidget.cpp
157     tristateaction.cpp
158     tristatewidget.cpp
159     uithememanager.cpp
160     utils.cpp
161     watchedfolderoptionsdialog.cpp
162     watchedfoldersmodel.cpp
164     # forms
165     aboutdialog.ui
166     addnewtorrentdialog.ui
167     autoexpandabledialog.ui
168     banlistoptionsdialog.ui
169     cookiesdialog.ui
170     deletionconfirmationdialog.ui
171     downloadfromurldialog.ui
172     executionlogwidget.ui
173     ipsubnetwhitelistoptionsdialog.ui
174     mainwindow.ui
175     optionsdialog.ui
176     previewselectdialog.ui
177     properties/peersadditiondialog.ui
178     properties/propertieswidget.ui
179     properties/trackersadditiondialog.ui
180     rss/automatedrssdownloader.ui
181     rss/rsswidget.ui
182     search/pluginselectdialog.ui
183     search/pluginsourcedialog.ui
184     search/searchjobwidget.ui
185     search/searchwidget.ui
186     shutdownconfirmdialog.ui
187     speedlimitdialog.ui
188     statsdialog.ui
189     torrentcategorydialog.ui
190     torrentcreatordialog.ui
191     torrentoptionsdialog.ui
192     trackerentriesdialog.ui
193     watchedfolderoptionsdialog.ui
196 target_sources(qbt_gui INTERFACE about.qrc)
198 target_link_libraries(qbt_gui
199     PRIVATE
200         qbt_base
201     PUBLIC
202         Qt5::Gui Qt5::Widgets
205 if (DBUS)
206     target_sources(qbt_gui PRIVATE
207         qtnotify/notifications.h
208         qtnotify/notifications.cpp
209         powermanagement/powermanagement_x11.h
210         powermanagement/powermanagement_x11.cpp
211     )
212 endif()
214 if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
215     target_sources(qbt_gui PRIVATE
216         programupdater.h
217         programupdater.cpp
218     )
219 endif()
221 if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
222     target_link_libraries(qbt_gui PRIVATE
223         Qt5::WinExtras
224         PowrProf
225     )
226 endif()
228 if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
229     target_sources(qbt_gui PRIVATE
230         macutilities.h
231         macutilities.mm
232     )
233     target_link_libraries(qbt_gui PRIVATE
234         objc
235     )
236 endif()