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