2017-04-19 16:23:19 +03:00
|
|
|
find_package(ZLIB 1.2.5.2 REQUIRED)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
|
|
|
set(QBT_BASE_HEADERS
|
2017-04-29 11:49:40 +03:00
|
|
|
bittorrent/addtorrentparams.h
|
2015-11-06 21:03:18 +03:00
|
|
|
bittorrent/cachestatus.h
|
|
|
|
bittorrent/infohash.h
|
|
|
|
bittorrent/magneturi.h
|
|
|
|
bittorrent/peerinfo.h
|
|
|
|
bittorrent/private/bandwidthscheduler.h
|
|
|
|
bittorrent/private/filterparserthread.h
|
|
|
|
bittorrent/private/resumedatasavingmanager.h
|
|
|
|
bittorrent/private/speedmonitor.h
|
|
|
|
bittorrent/private/statistics.h
|
|
|
|
bittorrent/session.h
|
|
|
|
bittorrent/sessionstatus.h
|
|
|
|
bittorrent/torrentcreatorthread.h
|
|
|
|
bittorrent/torrenthandle.h
|
|
|
|
bittorrent/torrentinfo.h
|
|
|
|
bittorrent/tracker.h
|
|
|
|
bittorrent/trackerentry.h
|
|
|
|
http/connection.h
|
2017-10-14 16:27:21 +03:00
|
|
|
http/httperror.h
|
2015-11-06 21:03:18 +03:00
|
|
|
http/irequesthandler.h
|
|
|
|
http/requestparser.h
|
|
|
|
http/responsebuilder.h
|
|
|
|
http/responsegenerator.h
|
|
|
|
http/server.h
|
|
|
|
http/types.h
|
|
|
|
net/dnsupdater.h
|
|
|
|
net/downloadhandler.h
|
|
|
|
net/downloadmanager.h
|
|
|
|
net/geoipmanager.h
|
|
|
|
net/portforwarder.h
|
|
|
|
net/private/geoipdatabase.h
|
2016-11-17 18:20:36 +03:00
|
|
|
net/proxyconfigurationmanager.h
|
2015-11-06 21:03:18 +03:00
|
|
|
net/reverseresolution.h
|
|
|
|
net/smtp.h
|
2016-05-03 22:45:06 +03:00
|
|
|
private/profile_p.h
|
2017-04-23 11:28:21 +03:00
|
|
|
rss/private/rss_parser.h
|
|
|
|
rss/rss_article.h
|
|
|
|
rss/rss_autodownloader.h
|
|
|
|
rss/rss_autodownloadrule.h
|
|
|
|
rss/rss_feed.h
|
|
|
|
rss/rss_folder.h
|
|
|
|
rss/rss_item.h
|
|
|
|
rss/rss_session.h
|
2018-01-29 17:05:29 +03:00
|
|
|
search/searchdownloadhandler.h
|
|
|
|
search/searchhandler.h
|
|
|
|
search/searchpluginmanager.h
|
2018-03-02 16:59:57 +03:00
|
|
|
utils/bytearray.h
|
2015-11-06 21:03:18 +03:00
|
|
|
utils/fs.h
|
|
|
|
utils/gzip.h
|
|
|
|
utils/misc.h
|
2017-03-08 11:12:49 +03:00
|
|
|
utils/net.h
|
2017-02-10 15:33:21 +03:00
|
|
|
utils/random.h
|
2015-11-06 21:03:18 +03:00
|
|
|
utils/string.h
|
2016-05-14 17:46:40 +03:00
|
|
|
utils/version.h
|
2018-03-06 17:50:10 +03:00
|
|
|
algorithm.h
|
2017-04-23 11:28:21 +03:00
|
|
|
asyncfilestorage.h
|
2018-01-20 09:27:58 +03:00
|
|
|
exceptions.h
|
2015-11-06 21:03:18 +03:00
|
|
|
filesystemwatcher.h
|
2016-04-29 12:25:15 +03:00
|
|
|
global.h
|
2015-11-06 21:03:18 +03:00
|
|
|
iconprovider.h
|
2016-02-29 02:44:08 +03:00
|
|
|
indexrange.h
|
2015-11-06 21:03:18 +03:00
|
|
|
logger.h
|
|
|
|
preferences.h
|
2016-05-03 22:45:06 +03:00
|
|
|
profile.h
|
2015-11-06 21:03:18 +03:00
|
|
|
scanfoldersmodel.h
|
2016-03-05 02:36:17 +03:00
|
|
|
settingsstorage.h
|
2016-04-07 17:58:30 +03:00
|
|
|
torrentfileguard.h
|
2015-11-06 21:03:18 +03:00
|
|
|
torrentfilter.h
|
|
|
|
tristatebool.h
|
|
|
|
types.h
|
|
|
|
unicodestrings.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(QBT_BASE_SOURCES
|
|
|
|
bittorrent/infohash.cpp
|
|
|
|
bittorrent/magneturi.cpp
|
|
|
|
bittorrent/peerinfo.cpp
|
|
|
|
bittorrent/private/bandwidthscheduler.cpp
|
|
|
|
bittorrent/private/filterparserthread.cpp
|
|
|
|
bittorrent/private/resumedatasavingmanager.cpp
|
|
|
|
bittorrent/private/speedmonitor.cpp
|
|
|
|
bittorrent/private/statistics.cpp
|
|
|
|
bittorrent/session.cpp
|
|
|
|
bittorrent/torrentcreatorthread.cpp
|
|
|
|
bittorrent/torrenthandle.cpp
|
|
|
|
bittorrent/torrentinfo.cpp
|
|
|
|
bittorrent/tracker.cpp
|
|
|
|
bittorrent/trackerentry.cpp
|
|
|
|
http/connection.cpp
|
2017-10-14 16:27:21 +03:00
|
|
|
http/httperror.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
http/requestparser.cpp
|
|
|
|
http/responsebuilder.cpp
|
|
|
|
http/responsegenerator.cpp
|
|
|
|
http/server.cpp
|
|
|
|
net/dnsupdater.cpp
|
|
|
|
net/downloadhandler.cpp
|
|
|
|
net/downloadmanager.cpp
|
|
|
|
net/geoipmanager.cpp
|
|
|
|
net/portforwarder.cpp
|
|
|
|
net/private/geoipdatabase.cpp
|
2016-11-17 18:20:36 +03:00
|
|
|
net/proxyconfigurationmanager.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
net/reverseresolution.cpp
|
|
|
|
net/smtp.cpp
|
2016-05-03 22:45:06 +03:00
|
|
|
private/profile_p.cpp
|
2017-04-23 11:28:21 +03:00
|
|
|
rss/private/rss_parser.cpp
|
|
|
|
rss/rss_article.cpp
|
|
|
|
rss/rss_autodownloader.cpp
|
|
|
|
rss/rss_autodownloadrule.cpp
|
|
|
|
rss/rss_feed.cpp
|
|
|
|
rss/rss_folder.cpp
|
|
|
|
rss/rss_item.cpp
|
|
|
|
rss/rss_session.cpp
|
2018-01-29 17:05:29 +03:00
|
|
|
search/searchdownloadhandler.cpp
|
|
|
|
search/searchhandler.cpp
|
|
|
|
search/searchpluginmanager.cpp
|
2018-03-02 16:59:57 +03:00
|
|
|
utils/bytearray.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
utils/fs.cpp
|
|
|
|
utils/gzip.cpp
|
|
|
|
utils/misc.cpp
|
2017-03-08 11:12:49 +03:00
|
|
|
utils/net.cpp
|
2017-02-10 15:33:21 +03:00
|
|
|
utils/random.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
utils/string.cpp
|
2017-04-23 11:28:21 +03:00
|
|
|
asyncfilestorage.cpp
|
2018-01-20 09:27:58 +03:00
|
|
|
exceptions.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
filesystemwatcher.cpp
|
|
|
|
iconprovider.cpp
|
|
|
|
logger.cpp
|
|
|
|
preferences.cpp
|
2016-05-03 22:45:06 +03:00
|
|
|
profile.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
scanfoldersmodel.cpp
|
2016-03-05 02:36:17 +03:00
|
|
|
settingsstorage.cpp
|
2016-04-07 17:58:30 +03:00
|
|
|
torrentfileguard.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
torrentfilter.cpp
|
|
|
|
tristatebool.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(qbt_base STATIC ${QBT_BASE_HEADERS} ${QBT_BASE_SOURCES})
|
2017-01-21 18:36:52 +03:00
|
|
|
target_link_libraries(qbt_base PRIVATE ZLIB::ZLIB PUBLIC LibtorrentRasterbar::LibTorrent)
|
|
|
|
target_link_qt_components(qbt_base PUBLIC Core Network Xml)
|
2017-01-19 15:10:09 +03:00
|
|
|
|
|
|
|
if (GUI)
|
|
|
|
target_link_libraries(qbt_base PUBLIC Qt5::Gui Qt5::Widgets)
|
|
|
|
endif (GUI)
|
2016-05-01 03:54:53 +03:00
|
|
|
|
|
|
|
if (DBUS)
|
2017-01-21 18:36:52 +03:00
|
|
|
target_link_qt_components(qbt_base PRIVATE DBus)
|
2016-05-01 03:54:53 +03:00
|
|
|
endif ()
|
|
|
|
|
2016-03-12 05:49:34 +03:00
|
|
|
if (APPLE)
|
|
|
|
find_library(IOKit_LIBRARY IOKit)
|
|
|
|
find_library(Carbon_LIBRARY Carbon)
|
2017-08-11 08:37:06 +03:00
|
|
|
find_library(AppKit_LIBRARY AppKit)
|
|
|
|
target_link_libraries(qbt_base PRIVATE ${Carbon_LIBRARY} ${IOKit_LIBRARY} ${AppKit_LIBRARY})
|
2016-03-12 05:49:34 +03:00
|
|
|
endif (APPLE)
|