1 add_library(qbt_base STATIC
6 bittorrent/abstractfilestorage.h
7 bittorrent/addtorrentparams.h
8 bittorrent/bandwidthscheduler.h
9 bittorrent/bencoderesumedatastorage.h
10 bittorrent/cachestatus.h
11 bittorrent/categoryoptions.h
13 bittorrent/customstorage.h
14 bittorrent/dbresumedatastorage.h
15 bittorrent/downloadpriority.h
16 bittorrent/filesearcher.h
17 bittorrent/filterparserthread.h
19 bittorrent/loadtorrentparams.h
20 bittorrent/ltqbitarray.h
22 bittorrent/lttypecast.h
23 bittorrent/magneturi.h
24 bittorrent/nativesessionextension.h
25 bittorrent/nativetorrentextension.h
26 bittorrent/peeraddress.h
28 bittorrent/portforwarderimpl.h
29 bittorrent/resumedatastorage.h
31 bittorrent/sessionstatus.h
32 bittorrent/speedmonitor.h
33 bittorrent/statistics.h
35 bittorrent/torrentcontentlayout.h
36 bittorrent/torrentcreatorthread.h
37 bittorrent/torrentimpl.h
38 bittorrent/torrentinfo.h
40 bittorrent/trackerentry.h
46 http/irequesthandler.h
48 http/responsebuilder.h
49 http/responsegenerator.h
56 net/downloadhandlerimpl.h
61 net/proxyconfigurationmanager.h
62 net/reverseresolution.h
71 rss/rss_autodownloader.h
72 rss/rss_autodownloadrule.h
78 search/searchdownloadhandler.h
79 search/searchhandler.h
80 search/searchpluginmanager.h
104 bittorrent/abstractfilestorage.cpp
105 bittorrent/bandwidthscheduler.cpp
106 bittorrent/bencoderesumedatastorage.cpp
107 bittorrent/categoryoptions.cpp
108 bittorrent/customstorage.cpp
109 bittorrent/dbresumedatastorage.cpp
110 bittorrent/downloadpriority.cpp
111 bittorrent/filesearcher.cpp
112 bittorrent/filterparserthread.cpp
113 bittorrent/infohash.cpp
114 bittorrent/ltqbitarray.cpp
115 bittorrent/magneturi.cpp
116 bittorrent/nativesessionextension.cpp
117 bittorrent/nativetorrentextension.cpp
118 bittorrent/peeraddress.cpp
119 bittorrent/peerinfo.cpp
120 bittorrent/portforwarderimpl.cpp
121 bittorrent/session.cpp
122 bittorrent/speedmonitor.cpp
123 bittorrent/statistics.cpp
124 bittorrent/torrent.cpp
125 bittorrent/torrentcontentlayout.cpp
126 bittorrent/torrentcreatorthread.cpp
127 bittorrent/torrentimpl.cpp
128 bittorrent/torrentinfo.cpp
129 bittorrent/tracker.cpp
130 bittorrent/trackerentry.cpp
134 http/requestparser.cpp
135 http/responsebuilder.cpp
136 http/responsegenerator.cpp
141 net/downloadhandlerimpl.cpp
142 net/downloadmanager.cpp
143 net/geoipdatabase.cpp
145 net/portforwarder.cpp
146 net/proxyconfigurationmanager.cpp
147 net/reverseresolution.cpp
154 rss/rss_autodownloader.cpp
155 rss/rss_autodownloadrule.cpp
161 search/searchdownloadhandler.cpp
162 search/searchhandler.cpp
163 search/searchpluginmanager.cpp
167 torrentfileswatcher.cpp
171 utils/foreignapps.cpp
182 target_link_libraries(qbt_base
184 OpenSSL::Crypto OpenSSL::SSL
187 LibtorrentRasterbar::torrent-rasterbar
188 Qt::Core Qt::Network Qt::Sql Qt::Xml
192 if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
193 find_library(IOKit_LIBRARY IOKit)
194 find_library(Carbon_LIBRARY Carbon)
195 find_library(AppKit_LIBRARY AppKit)
197 target_link_libraries(qbt_base PRIVATE
202 elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
203 target_link_libraries(qbt_base PRIVATE Iphlpapi)
207 target_compile_definitions(qbt_base PUBLIC DISABLE_GUI)
211 target_compile_definitions(qbt_base PUBLIC DISABLE_WEBUI)
215 target_link_libraries(qbt_base PUBLIC Qt::DBus)