WebUI: Add support for running concurrent searches
[qBittorrent.git] / src / base / CMakeLists.txt
blob3120422d64d9941f07a68a146cd7bbc65e67d36e
1 add_library(qbt_base STATIC
2     # headers
3     3rdparty/expected.hpp
4     addtorrentmanager.h
5     algorithm.h
6     applicationcomponent.h
7     asyncfilestorage.h
8     bittorrent/abstractfilestorage.h
9     bittorrent/addtorrentparams.h
10     bittorrent/bandwidthscheduler.h
11     bittorrent/bencoderesumedatastorage.h
12     bittorrent/cachestatus.h
13     bittorrent/categoryoptions.h
14     bittorrent/common.h
15     bittorrent/customstorage.h
16     bittorrent/dbresumedatastorage.h
17     bittorrent/downloadpathoption.h
18     bittorrent/downloadpriority.h
19     bittorrent/extensiondata.h
20     bittorrent/filesearcher.h
21     bittorrent/filterparserthread.h
22     bittorrent/infohash.h
23     bittorrent/loadtorrentparams.h
24     bittorrent/ltqbitarray.h
25     bittorrent/lttypecast.h
26     bittorrent/nativesessionextension.h
27     bittorrent/nativetorrentextension.h
28     bittorrent/peeraddress.h
29     bittorrent/peerinfo.h
30     bittorrent/portforwarderimpl.h
31     bittorrent/resumedatastorage.h
32     bittorrent/session.h
33     bittorrent/sessionimpl.h
34     bittorrent/sessionstatus.h
35     bittorrent/sharelimitaction.h
36     bittorrent/speedmonitor.h
37     bittorrent/sslparameters.h
38     bittorrent/torrent.h
39     bittorrent/torrentcontenthandler.h
40     bittorrent/torrentcontentlayout.h
41     bittorrent/torrentcreationmanager.h
42     bittorrent/torrentcreationtask.h
43     bittorrent/torrentcreator.h
44     bittorrent/torrentdescriptor.h
45     bittorrent/torrentimpl.h
46     bittorrent/torrentinfo.h
47     bittorrent/tracker.h
48     bittorrent/trackerentry.h
49     concepts/explicitlyconvertibleto.h
50     concepts/stringable.h
51     digest32.h
52     exceptions.h
53     global.h
54     http/connection.h
55     http/httperror.h
56     http/irequesthandler.h
57     http/requestparser.h
58     http/responsebuilder.h
59     http/responsegenerator.h
60     http/server.h
61     http/types.h
62     indexrange.h
63     interfaces/iapplication.h
64     logger.h
65     net/dnsupdater.h
66     net/downloadhandlerimpl.h
67     net/downloadmanager.h
68     net/geoipdatabase.h
69     net/geoipmanager.h
70     net/portforwarder.h
71     net/proxyconfigurationmanager.h
72     net/reverseresolution.h
73     net/smtp.h
74     orderedset.h
75     path.h
76     pathfwd.h
77     preferences.h
78     profile.h
79     profile_p.h
80     rss/feed_serializer.h
81     rss/rss_article.h
82     rss/rss_autodownloader.h
83     rss/rss_autodownloadrule.h
84     rss/rss_feed.h
85     rss/rss_folder.h
86     rss/rss_item.h
87     rss/rss_parser.h
88     rss/rss_session.h
89     search/searchdownloadhandler.h
90     search/searchhandler.h
91     search/searchpluginmanager.h
92     settingsstorage.h
93     tag.h
94     tagset.h
95     torrentfileguard.h
96     torrentfileswatcher.h
97     torrentfilter.h
98     types.h
99     unicodestrings.h
100     utils/bytearray.h
101     utils/compare.h
102     utils/datetime.h
103     utils/foreignapps.h
104     utils/fs.h
105     utils/gzip.h
106     utils/io.h
107     utils/misc.h
108     utils/net.h
109     utils/os.h
110     utils/password.h
111     utils/random.h
112     utils/sslkey.h
113     utils/string.h
114     utils/thread.h
115     utils/version.h
116     version.h
118     # sources
119     addtorrentmanager.cpp
120     applicationcomponent.cpp
121     asyncfilestorage.cpp
122     bittorrent/abstractfilestorage.cpp
123     bittorrent/addtorrentparams.cpp
124     bittorrent/bandwidthscheduler.cpp
125     bittorrent/bencoderesumedatastorage.cpp
126     bittorrent/categoryoptions.cpp
127     bittorrent/customstorage.cpp
128     bittorrent/dbresumedatastorage.cpp
129     bittorrent/downloadpathoption.cpp
130     bittorrent/downloadpriority.cpp
131     bittorrent/filesearcher.cpp
132     bittorrent/filterparserthread.cpp
133     bittorrent/infohash.cpp
134     bittorrent/ltqbitarray.cpp
135     bittorrent/nativesessionextension.cpp
136     bittorrent/nativetorrentextension.cpp
137     bittorrent/peeraddress.cpp
138     bittorrent/peerinfo.cpp
139     bittorrent/portforwarderimpl.cpp
140     bittorrent/resumedatastorage.cpp
141     bittorrent/sessionimpl.cpp
142     bittorrent/speedmonitor.cpp
143     bittorrent/sslparameters.cpp
144     bittorrent/torrent.cpp
145     bittorrent/torrentcontenthandler.cpp
146     bittorrent/torrentcreationmanager.cpp
147     bittorrent/torrentcreationtask.cpp
148     bittorrent/torrentcreator.cpp
149     bittorrent/torrentdescriptor.cpp
150     bittorrent/torrentimpl.cpp
151     bittorrent/torrentinfo.cpp
152     bittorrent/tracker.cpp
153     bittorrent/trackerentry.cpp
154     exceptions.cpp
155     http/connection.cpp
156     http/httperror.cpp
157     http/requestparser.cpp
158     http/responsebuilder.cpp
159     http/responsegenerator.cpp
160     http/server.cpp
161     logger.cpp
162     net/dnsupdater.cpp
163     net/downloadhandlerimpl.cpp
164     net/downloadmanager.cpp
165     net/geoipdatabase.cpp
166     net/geoipmanager.cpp
167     net/portforwarder.cpp
168     net/proxyconfigurationmanager.cpp
169     net/reverseresolution.cpp
170     net/smtp.cpp
171     path.cpp
172     preferences.cpp
173     profile.cpp
174     profile_p.cpp
175     rss/feed_serializer.cpp
176     rss/rss_article.cpp
177     rss/rss_autodownloader.cpp
178     rss/rss_autodownloadrule.cpp
179     rss/rss_feed.cpp
180     rss/rss_folder.cpp
181     rss/rss_item.cpp
182     rss/rss_parser.cpp
183     rss/rss_session.cpp
184     search/searchdownloadhandler.cpp
185     search/searchhandler.cpp
186     search/searchpluginmanager.cpp
187     settingsstorage.cpp
188     tag.cpp
189     tagset.cpp
190     torrentfileguard.cpp
191     torrentfileswatcher.cpp
192     torrentfilter.cpp
193     utils/bytearray.cpp
194     utils/compare.cpp
195     utils/datetime.cpp
196     utils/foreignapps.cpp
197     utils/fs.cpp
198     utils/gzip.cpp
199     utils/io.cpp
200     utils/misc.cpp
201     utils/net.cpp
202     utils/os.cpp
203     utils/password.cpp
204     utils/random.cpp
205     utils/sslkey.cpp
206     utils/string.cpp
207     utils/thread.cpp
208     utils/version.cpp
211 target_link_libraries(qbt_base
212     PRIVATE
213         OpenSSL::Crypto
214         OpenSSL::SSL
215         ZLIB::ZLIB
216     PUBLIC
217         LibtorrentRasterbar::torrent-rasterbar
218         Qt::Core
219         Qt::CorePrivate
220         Qt::Network
221         Qt::Sql
222         Qt::Xml
223         qbt_common_cfg
226 if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
227     find_library(AppKit_LIBRARY AppKit)
228     find_library(Carbon_LIBRARY Carbon)
229     find_library(IOKit_LIBRARY IOKit)
231     target_link_libraries(qbt_base PRIVATE
232         ${AppKit_LIBRARY}
233         ${Carbon_LIBRARY}
234         ${IOKit_LIBRARY}
235     )
236 elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
237     target_link_libraries(qbt_base PRIVATE Iphlpapi PowrProf)
238 endif()
240 if (NOT GUI)
241     target_compile_definitions(qbt_base PUBLIC DISABLE_GUI)
242 endif()
244 if (NOT WEBUI)
245     target_compile_definitions(qbt_base PUBLIC DISABLE_WEBUI)
246 endif()
248 if (DBUS)
249     target_link_libraries(qbt_base PUBLIC Qt::DBus)
250 endif()