Change "metadata received" stop condition behavior
[qBittorrent.git] / src / base / CMakeLists.txt
blob854bd5b38bcc26b7eb2ec552ebaeea31a5610c9c
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/speedmonitor.h
36     bittorrent/torrent.h
37     bittorrent/torrentcontenthandler.h
38     bittorrent/torrentcontentlayout.h
39     bittorrent/torrentcreator.h
40     bittorrent/torrentdescriptor.h
41     bittorrent/torrentimpl.h
42     bittorrent/torrentinfo.h
43     bittorrent/tracker.h
44     bittorrent/trackerentry.h
45     concepts/explicitlyconvertibleto.h
46     concepts/stringable.h
47     digest32.h
48     exceptions.h
49     global.h
50     http/connection.h
51     http/httperror.h
52     http/irequesthandler.h
53     http/requestparser.h
54     http/responsebuilder.h
55     http/responsegenerator.h
56     http/server.h
57     http/types.h
58     indexrange.h
59     interfaces/iapplication.h
60     logger.h
61     net/dnsupdater.h
62     net/downloadhandlerimpl.h
63     net/downloadmanager.h
64     net/geoipdatabase.h
65     net/geoipmanager.h
66     net/portforwarder.h
67     net/proxyconfigurationmanager.h
68     net/reverseresolution.h
69     net/smtp.h
70     orderedset.h
71     path.h
72     pathfwd.h
73     preferences.h
74     profile.h
75     profile_p.h
76     rss/feed_serializer.h
77     rss/rss_article.h
78     rss/rss_autodownloader.h
79     rss/rss_autodownloadrule.h
80     rss/rss_feed.h
81     rss/rss_folder.h
82     rss/rss_item.h
83     rss/rss_parser.h
84     rss/rss_session.h
85     search/searchdownloadhandler.h
86     search/searchhandler.h
87     search/searchpluginmanager.h
88     settingsstorage.h
89     tag.h
90     tagset.h
91     torrentfileguard.h
92     torrentfileswatcher.h
93     torrentfilter.h
94     types.h
95     unicodestrings.h
96     utils/bytearray.h
97     utils/compare.h
98     utils/datetime.h
99     utils/foreignapps.h
100     utils/fs.h
101     utils/gzip.h
102     utils/io.h
103     utils/misc.h
104     utils/net.h
105     utils/os.h
106     utils/password.h
107     utils/random.h
108     utils/string.h
109     utils/thread.h
110     utils/version.h
111     version.h
113     # sources
114     addtorrentmanager.cpp
115     applicationcomponent.cpp
116     asyncfilestorage.cpp
117     bittorrent/abstractfilestorage.cpp
118     bittorrent/addtorrentparams.cpp
119     bittorrent/bandwidthscheduler.cpp
120     bittorrent/bencoderesumedatastorage.cpp
121     bittorrent/categoryoptions.cpp
122     bittorrent/customstorage.cpp
123     bittorrent/dbresumedatastorage.cpp
124     bittorrent/downloadpathoption.cpp
125     bittorrent/downloadpriority.cpp
126     bittorrent/filesearcher.cpp
127     bittorrent/filterparserthread.cpp
128     bittorrent/infohash.cpp
129     bittorrent/ltqbitarray.cpp
130     bittorrent/nativesessionextension.cpp
131     bittorrent/nativetorrentextension.cpp
132     bittorrent/peeraddress.cpp
133     bittorrent/peerinfo.cpp
134     bittorrent/portforwarderimpl.cpp
135     bittorrent/resumedatastorage.cpp
136     bittorrent/sessionimpl.cpp
137     bittorrent/speedmonitor.cpp
138     bittorrent/torrent.cpp
139     bittorrent/torrentcontenthandler.cpp
140     bittorrent/torrentcreator.cpp
141     bittorrent/torrentdescriptor.cpp
142     bittorrent/torrentimpl.cpp
143     bittorrent/torrentinfo.cpp
144     bittorrent/tracker.cpp
145     bittorrent/trackerentry.cpp
146     exceptions.cpp
147     http/connection.cpp
148     http/httperror.cpp
149     http/requestparser.cpp
150     http/responsebuilder.cpp
151     http/responsegenerator.cpp
152     http/server.cpp
153     logger.cpp
154     net/dnsupdater.cpp
155     net/downloadhandlerimpl.cpp
156     net/downloadmanager.cpp
157     net/geoipdatabase.cpp
158     net/geoipmanager.cpp
159     net/portforwarder.cpp
160     net/proxyconfigurationmanager.cpp
161     net/reverseresolution.cpp
162     net/smtp.cpp
163     path.cpp
164     preferences.cpp
165     profile.cpp
166     profile_p.cpp
167     rss/feed_serializer.cpp
168     rss/rss_article.cpp
169     rss/rss_autodownloader.cpp
170     rss/rss_autodownloadrule.cpp
171     rss/rss_feed.cpp
172     rss/rss_folder.cpp
173     rss/rss_item.cpp
174     rss/rss_parser.cpp
175     rss/rss_session.cpp
176     search/searchdownloadhandler.cpp
177     search/searchhandler.cpp
178     search/searchpluginmanager.cpp
179     settingsstorage.cpp
180     tag.cpp
181     tagset.cpp
182     torrentfileguard.cpp
183     torrentfileswatcher.cpp
184     torrentfilter.cpp
185     utils/bytearray.cpp
186     utils/compare.cpp
187     utils/datetime.cpp
188     utils/foreignapps.cpp
189     utils/fs.cpp
190     utils/gzip.cpp
191     utils/io.cpp
192     utils/misc.cpp
193     utils/net.cpp
194     utils/os.cpp
195     utils/password.cpp
196     utils/random.cpp
197     utils/string.cpp
198     utils/thread.cpp
199     utils/version.cpp
202 target_link_libraries(qbt_base
203     PRIVATE
204         OpenSSL::Crypto
205         OpenSSL::SSL
206         ZLIB::ZLIB
207     PUBLIC
208         LibtorrentRasterbar::torrent-rasterbar
209         Qt::Core
210         Qt::CorePrivate
211         Qt::Network
212         Qt::Sql
213         Qt::Xml
214         qbt_common_cfg
217 if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
218     find_library(AppKit_LIBRARY AppKit)
219     find_library(Carbon_LIBRARY Carbon)
220     find_library(IOKit_LIBRARY IOKit)
222     target_link_libraries(qbt_base PRIVATE
223         ${AppKit_LIBRARY}
224         ${Carbon_LIBRARY}
225         ${IOKit_LIBRARY}
226     )
227 elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
228     target_link_libraries(qbt_base PRIVATE Iphlpapi)
229 endif()
231 if (NOT GUI)
232     target_compile_definitions(qbt_base PUBLIC DISABLE_GUI)
233 endif()
235 if (NOT WEBUI)
236     target_compile_definitions(qbt_base PUBLIC DISABLE_WEBUI)
237 endif()
239 if (DBUS)
240     target_link_libraries(qbt_base PUBLIC Qt::DBus)
241 endif()