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