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
12 bittorrent/customstorage.h
13 bittorrent/dbresumedatastorage.h
14 bittorrent/downloadpriority.h
15 bittorrent/filesearcher.h
16 bittorrent/filterparserthread.h
18 bittorrent/loadtorrentparams.h
20 bittorrent/lttypecast.h
21 bittorrent/magneturi.h
22 bittorrent/nativesessionextension.h
23 bittorrent/nativetorrentextension.h
24 bittorrent/peeraddress.h
26 bittorrent/portforwarderimpl.h
27 bittorrent/resumedatastorage.h
29 bittorrent/sessionstatus.h
30 bittorrent/speedmonitor.h
31 bittorrent/statistics.h
33 bittorrent/torrentcontentlayout.h
34 bittorrent/torrentcreatorthread.h
35 bittorrent/torrentimpl.h
36 bittorrent/torrentinfo.h
38 bittorrent/trackerentry.h
44 http/irequesthandler.h
46 http/responsebuilder.h
47 http/responsegenerator.h
54 net/downloadhandlerimpl.h
59 net/proxyconfigurationmanager.h
60 net/reverseresolution.h
67 rss/rss_autodownloader.h
68 rss/rss_autodownloadrule.h
74 search/searchdownloadhandler.h
75 search/searchhandler.h
76 search/searchpluginmanager.h
100 bittorrent/abstractfilestorage.cpp
101 bittorrent/bandwidthscheduler.cpp
102 bittorrent/bencoderesumedatastorage.cpp
103 bittorrent/customstorage.cpp
104 bittorrent/dbresumedatastorage.cpp
105 bittorrent/downloadpriority.cpp
106 bittorrent/filesearcher.cpp
107 bittorrent/filterparserthread.cpp
108 bittorrent/infohash.cpp
109 bittorrent/magneturi.cpp
110 bittorrent/nativesessionextension.cpp
111 bittorrent/nativetorrentextension.cpp
112 bittorrent/peeraddress.cpp
113 bittorrent/peerinfo.cpp
114 bittorrent/portforwarderimpl.cpp
115 bittorrent/session.cpp
116 bittorrent/speedmonitor.cpp
117 bittorrent/statistics.cpp
118 bittorrent/torrent.cpp
119 bittorrent/torrentcreatorthread.cpp
120 bittorrent/torrentimpl.cpp
121 bittorrent/torrentinfo.cpp
122 bittorrent/tracker.cpp
123 bittorrent/trackerentry.cpp
127 http/requestparser.cpp
128 http/responsebuilder.cpp
129 http/responsegenerator.cpp
134 net/downloadhandlerimpl.cpp
135 net/downloadmanager.cpp
136 net/geoipdatabase.cpp
138 net/portforwarder.cpp
139 net/proxyconfigurationmanager.cpp
140 net/reverseresolution.cpp
146 rss/rss_autodownloader.cpp
147 rss/rss_autodownloadrule.cpp
153 search/searchdownloadhandler.cpp
154 search/searchhandler.cpp
155 search/searchpluginmanager.cpp
159 torrentfileswatcher.cpp
163 utils/foreignapps.cpp
174 target_link_libraries(qbt_base
176 OpenSSL::Crypto OpenSSL::SSL
179 LibtorrentRasterbar::torrent-rasterbar
180 Qt::Core Qt::Network Qt::Sql Qt::Xml
184 if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
185 find_library(IOKit_LIBRARY IOKit)
186 find_library(Carbon_LIBRARY Carbon)
187 find_library(AppKit_LIBRARY AppKit)
189 target_link_libraries(qbt_base PRIVATE
194 elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
195 target_link_libraries(qbt_base PRIVATE Iphlpapi)
199 target_compile_definitions(qbt_base PUBLIC DISABLE_GUI)
203 target_compile_definitions(qbt_base PUBLIC DISABLE_WEBUI)
207 target_link_libraries(qbt_base PUBLIC Qt::DBus)