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