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