Sync translations from Transifex and run lupdate
[qBittorrent.git] / src / base / CMakeLists.txt
blob6e9386cc7a0b9b7e14c06581df6e2f5ae0b51a24
1 add_library(qbt_base STATIC
2     # headers
3     3rdparty/expected.hpp
4     algorithm.h
5     asyncfilestorage.h
6     bittorrent/abstractfilestorage.h
7     bittorrent/addtorrentparams.h
8     bittorrent/bandwidthscheduler.h
9     bittorrent/bencoderesumedatastorage.h
10     bittorrent/cachestatus.h
11     bittorrent/categoryoptions.h
12     bittorrent/common.h
13     bittorrent/customstorage.h
14     bittorrent/dbresumedatastorage.h
15     bittorrent/downloadpriority.h
16     bittorrent/filesearcher.h
17     bittorrent/filterparserthread.h
18     bittorrent/infohash.h
19     bittorrent/loadtorrentparams.h
20     bittorrent/ltqbitarray.h
21     bittorrent/ltqhash.h
22     bittorrent/lttypecast.h
23     bittorrent/magneturi.h
24     bittorrent/nativesessionextension.h
25     bittorrent/nativetorrentextension.h
26     bittorrent/peeraddress.h
27     bittorrent/peerinfo.h
28     bittorrent/portforwarderimpl.h
29     bittorrent/resumedatastorage.h
30     bittorrent/session.h
31     bittorrent/sessionstatus.h
32     bittorrent/speedmonitor.h
33     bittorrent/statistics.h
34     bittorrent/torrent.h
35     bittorrent/torrentcontentlayout.h
36     bittorrent/torrentcreatorthread.h
37     bittorrent/torrentimpl.h
38     bittorrent/torrentinfo.h
39     bittorrent/tracker.h
40     bittorrent/trackerentry.h
41     digest32.h
42     exceptions.h
43     global.h
44     http/connection.h
45     http/httperror.h
46     http/irequesthandler.h
47     http/requestparser.h
48     http/responsebuilder.h
49     http/responsegenerator.h
50     http/server.h
51     http/types.h
52     iconprovider.h
53     indexrange.h
54     logger.h
55     net/dnsupdater.h
56     net/downloadhandlerimpl.h
57     net/downloadmanager.h
58     net/geoipdatabase.h
59     net/geoipmanager.h
60     net/portforwarder.h
61     net/proxyconfigurationmanager.h
62     net/reverseresolution.h
63     net/smtp.h
64     orderedset.h
65     path.h
66     pathfwd.h
67     preferences.h
68     profile.h
69     profile_p.h
70     rss/rss_article.h
71     rss/rss_autodownloader.h
72     rss/rss_autodownloadrule.h
73     rss/rss_feed.h
74     rss/rss_folder.h
75     rss/rss_item.h
76     rss/rss_parser.h
77     rss/rss_session.h
78     search/searchdownloadhandler.h
79     search/searchhandler.h
80     search/searchpluginmanager.h
81     settingsstorage.h
82     tagset.h
83     torrentfileguard.h
84     torrentfileswatcher.h
85     torrentfilter.h
86     types.h
87     unicodestrings.h
88     utils/bytearray.h
89     utils/compare.h
90     utils/foreignapps.h
91     utils/fs.h
92     utils/gzip.h
93     utils/io.h
94     utils/misc.h
95     utils/net.h
96     utils/password.h
97     utils/random.h
98     utils/string.h
99     utils/version.h
100     version.h
102     # sources
103     asyncfilestorage.cpp
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
131     exceptions.cpp
132     http/connection.cpp
133     http/httperror.cpp
134     http/requestparser.cpp
135     http/responsebuilder.cpp
136     http/responsegenerator.cpp
137     http/server.cpp
138     iconprovider.cpp
139     logger.cpp
140     net/dnsupdater.cpp
141     net/downloadhandlerimpl.cpp
142     net/downloadmanager.cpp
143     net/geoipdatabase.cpp
144     net/geoipmanager.cpp
145     net/portforwarder.cpp
146     net/proxyconfigurationmanager.cpp
147     net/reverseresolution.cpp
148     net/smtp.cpp
149     path.cpp
150     preferences.cpp
151     profile.cpp
152     profile_p.cpp
153     rss/rss_article.cpp
154     rss/rss_autodownloader.cpp
155     rss/rss_autodownloadrule.cpp
156     rss/rss_feed.cpp
157     rss/rss_folder.cpp
158     rss/rss_item.cpp
159     rss/rss_parser.cpp
160     rss/rss_session.cpp
161     search/searchdownloadhandler.cpp
162     search/searchhandler.cpp
163     search/searchpluginmanager.cpp
164     settingsstorage.cpp
165     tagset.cpp
166     torrentfileguard.cpp
167     torrentfileswatcher.cpp
168     torrentfilter.cpp
169     utils/bytearray.cpp
170     utils/compare.cpp
171     utils/foreignapps.cpp
172     utils/fs.cpp
173     utils/gzip.cpp
174     utils/io.cpp
175     utils/misc.cpp
176     utils/net.cpp
177     utils/password.cpp
178     utils/random.cpp
179     utils/string.cpp
182 target_link_libraries(qbt_base
183     PRIVATE
184         OpenSSL::Crypto OpenSSL::SSL
185         ZLIB::ZLIB
186     PUBLIC
187         LibtorrentRasterbar::torrent-rasterbar
188         Qt::Core Qt::Network Qt::Sql Qt::Xml
189         qbt_common_cfg
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
198         ${AppKit_LIBRARY}
199         ${Carbon_LIBRARY}
200         ${IOKit_LIBRARY}
201     )
202 elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
203     target_link_libraries(qbt_base PRIVATE Iphlpapi)
204 endif()
206 if (NOT GUI)
207     target_compile_definitions(qbt_base PUBLIC DISABLE_GUI)
208 endif()
210 if (NOT WEBUI)
211     target_compile_definitions(qbt_base PUBLIC DISABLE_WEBUI)
212 endif()
214 if (DBUS)
215     target_link_libraries(qbt_base PUBLIC Qt::DBus)
216 endif()