2015-11-06 21:03:18 +03:00
|
|
|
set(CMAKE_AUTORCC True)
|
|
|
|
set(CMAKE_AUTOUIC True)
|
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
add_library(qbt_gui_headers INTERFACE)
|
|
|
|
target_include_directories(qbt_gui_headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
2015-11-06 21:03:18 +03:00
|
|
|
|
|
|
|
add_subdirectory(properties)
|
|
|
|
add_subdirectory(powermanagement)
|
|
|
|
add_subdirectory(rss)
|
|
|
|
add_subdirectory(search)
|
2016-04-17 01:55:45 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
add_library(qbt_gui STATIC
|
|
|
|
# headers
|
2018-06-14 12:54:23 +03:00
|
|
|
aboutdialog.h
|
2015-11-06 21:03:18 +03:00
|
|
|
addnewtorrentdialog.h
|
|
|
|
advancedsettings.h
|
|
|
|
autoexpandabledialog.h
|
2018-06-14 12:54:23 +03:00
|
|
|
banlistoptionsdialog.h
|
2017-01-21 02:32:00 +03:00
|
|
|
categoryfiltermodel.h
|
2017-04-29 01:49:06 +03:00
|
|
|
categoryfilterproxymodel.h
|
2017-01-21 02:32:00 +03:00
|
|
|
categoryfilterwidget.h
|
2016-04-12 03:07:10 +03:00
|
|
|
cookiesdialog.h
|
|
|
|
cookiesmodel.h
|
2018-06-14 12:54:23 +03:00
|
|
|
deletionconfirmationdialog.h
|
2018-05-23 11:43:03 +03:00
|
|
|
downloadfromurldialog.h
|
2018-06-14 12:54:23 +03:00
|
|
|
executionlogwidget.h
|
2016-04-20 23:42:35 +03:00
|
|
|
fspathedit.h
|
2015-11-06 21:03:18 +03:00
|
|
|
hidabletabwidget.h
|
2017-09-27 20:55:20 +03:00
|
|
|
ipsubnetwhitelistoptionsdialog.h
|
2019-07-13 09:05:35 +03:00
|
|
|
lineedit.h
|
2015-11-06 21:03:18 +03:00
|
|
|
loglistwidget.h
|
|
|
|
mainwindow.h
|
2018-06-14 12:54:23 +03:00
|
|
|
optionsdialog.h
|
2015-11-06 21:03:18 +03:00
|
|
|
previewlistdelegate.h
|
2017-09-11 21:32:11 +03:00
|
|
|
previewselectdialog.h
|
2019-07-24 18:01:26 +03:00
|
|
|
private/fspathedit_p.h
|
2019-07-07 16:02:13 +03:00
|
|
|
private/tristatewidget.h
|
2018-06-14 12:54:23 +03:00
|
|
|
raisedmessagebox.h
|
2015-11-06 21:03:18 +03:00
|
|
|
scanfoldersdelegate.h
|
2018-06-14 12:54:23 +03:00
|
|
|
shutdownconfirmdialog.h
|
|
|
|
speedlimitdialog.h
|
2015-11-06 21:03:18 +03:00
|
|
|
statsdialog.h
|
|
|
|
statusbar.h
|
2017-06-05 03:22:17 +03:00
|
|
|
tagfiltermodel.h
|
|
|
|
tagfilterproxymodel.h
|
|
|
|
tagfilterwidget.h
|
2017-09-24 14:54:42 +03:00
|
|
|
torrentcategorydialog.h
|
2015-11-06 21:03:18 +03:00
|
|
|
torrentcontentfiltermodel.h
|
|
|
|
torrentcontentmodel.h
|
|
|
|
torrentcontentmodelfile.h
|
|
|
|
torrentcontentmodelfolder.h
|
|
|
|
torrentcontentmodelitem.h
|
|
|
|
torrentcontenttreeview.h
|
2018-06-14 12:54:23 +03:00
|
|
|
torrentcreatordialog.h
|
2019-06-24 18:37:31 +03:00
|
|
|
trackerentriesdialog.h
|
2015-11-06 21:03:18 +03:00
|
|
|
transferlistdelegate.h
|
|
|
|
transferlistfilterswidget.h
|
2018-06-14 12:54:23 +03:00
|
|
|
transferlistmodel.h
|
2015-11-06 21:03:18 +03:00
|
|
|
transferlistsortmodel.h
|
|
|
|
transferlistwidget.h
|
2019-07-07 16:02:13 +03:00
|
|
|
tristateaction.h
|
2019-07-09 17:26:55 +03:00
|
|
|
uithememanager.h
|
2018-06-14 12:54:23 +03:00
|
|
|
updownratiodialog.h
|
2017-11-24 12:13:22 +03:00
|
|
|
utils.h
|
2018-06-14 12:54:23 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
# sources
|
2019-07-17 16:57:52 +03:00
|
|
|
aboutdialog.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
addnewtorrentdialog.cpp
|
|
|
|
advancedsettings.cpp
|
|
|
|
autoexpandabledialog.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
banlistoptionsdialog.cpp
|
2017-01-21 02:32:00 +03:00
|
|
|
categoryfiltermodel.cpp
|
2017-04-29 01:49:06 +03:00
|
|
|
categoryfilterproxymodel.cpp
|
2017-01-21 02:32:00 +03:00
|
|
|
categoryfilterwidget.cpp
|
2016-04-12 03:07:10 +03:00
|
|
|
cookiesdialog.cpp
|
|
|
|
cookiesmodel.cpp
|
2019-09-29 05:41:51 +03:00
|
|
|
deletionconfirmationdialog.cpp
|
2018-05-23 11:43:03 +03:00
|
|
|
downloadfromurldialog.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
executionlogwidget.cpp
|
2016-04-20 23:42:35 +03:00
|
|
|
fspathedit.cpp
|
2019-07-17 16:57:52 +03:00
|
|
|
hidabletabwidget.cpp
|
2017-09-27 20:55:20 +03:00
|
|
|
ipsubnetwhitelistoptionsdialog.cpp
|
2019-07-13 09:05:35 +03:00
|
|
|
lineedit.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
loglistwidget.cpp
|
|
|
|
mainwindow.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
optionsdialog.cpp
|
2019-07-17 16:57:52 +03:00
|
|
|
previewlistdelegate.cpp
|
2017-09-11 21:32:11 +03:00
|
|
|
previewselectdialog.cpp
|
2019-07-24 18:01:26 +03:00
|
|
|
private/fspathedit_p.cpp
|
2019-07-07 16:02:13 +03:00
|
|
|
private/tristatewidget.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
raisedmessagebox.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
scanfoldersdelegate.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
shutdownconfirmdialog.cpp
|
|
|
|
speedlimitdialog.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
statsdialog.cpp
|
|
|
|
statusbar.cpp
|
2017-06-05 03:22:17 +03:00
|
|
|
tagfiltermodel.cpp
|
|
|
|
tagfilterproxymodel.cpp
|
|
|
|
tagfilterwidget.cpp
|
2017-09-24 14:54:42 +03:00
|
|
|
torrentcategorydialog.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
torrentcontentfiltermodel.cpp
|
|
|
|
torrentcontentmodel.cpp
|
|
|
|
torrentcontentmodelfile.cpp
|
|
|
|
torrentcontentmodelfolder.cpp
|
|
|
|
torrentcontentmodelitem.cpp
|
|
|
|
torrentcontenttreeview.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
torrentcreatordialog.cpp
|
2019-06-24 18:37:31 +03:00
|
|
|
trackerentriesdialog.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
transferlistdelegate.cpp
|
|
|
|
transferlistfilterswidget.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
transferlistmodel.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
transferlistsortmodel.cpp
|
|
|
|
transferlistwidget.cpp
|
2019-07-07 16:02:13 +03:00
|
|
|
tristateaction.cpp
|
2019-07-09 17:26:55 +03:00
|
|
|
uithememanager.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
updownratiodialog.cpp
|
2017-11-24 12:13:22 +03:00
|
|
|
utils.cpp
|
2018-06-14 12:54:23 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
# forms
|
2018-06-14 12:54:23 +03:00
|
|
|
aboutdialog.ui
|
|
|
|
addnewtorrentdialog.ui
|
|
|
|
autoexpandabledialog.ui
|
|
|
|
banlistoptionsdialog.ui
|
2016-04-12 03:07:10 +03:00
|
|
|
cookiesdialog.ui
|
2018-06-14 12:54:23 +03:00
|
|
|
deletionconfirmationdialog.ui
|
|
|
|
downloadfromurldialog.ui
|
|
|
|
executionlogwidget.ui
|
2017-09-27 20:55:20 +03:00
|
|
|
ipsubnetwhitelistoptionsdialog.ui
|
2018-06-14 12:54:23 +03:00
|
|
|
mainwindow.ui
|
|
|
|
optionsdialog.ui
|
2017-09-11 21:32:11 +03:00
|
|
|
previewselectdialog.ui
|
2018-06-14 12:54:23 +03:00
|
|
|
shutdownconfirmdialog.ui
|
|
|
|
speedlimitdialog.ui
|
2015-11-06 21:03:18 +03:00
|
|
|
statsdialog.ui
|
2017-09-24 14:54:42 +03:00
|
|
|
torrentcategorydialog.ui
|
2018-06-14 12:54:23 +03:00
|
|
|
torrentcreatordialog.ui
|
2019-06-24 18:37:31 +03:00
|
|
|
trackerentriesdialog.ui
|
2018-06-14 12:54:23 +03:00
|
|
|
updownratiodialog.ui
|
2015-11-06 21:03:18 +03:00
|
|
|
)
|
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
target_link_libraries(qbt_gui
|
|
|
|
PRIVATE
|
2019-07-13 09:05:35 +03:00
|
|
|
qbt_powermanagement qbt_rss qbt_properties qbt_searchengine
|
2018-06-05 04:03:38 +03:00
|
|
|
qbt_base
|
|
|
|
)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
target_include_directories(qbt_gui
|
|
|
|
PRIVATE ../app
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
2016-04-17 02:07:15 +03:00
|
|
|
)
|
2018-06-05 04:03:38 +03:00
|
|
|
|
|
|
|
if (UNIX AND Qt5DBus_FOUND)
|
|
|
|
add_subdirectory(qtnotify)
|
|
|
|
target_link_libraries(qbt_gui PRIVATE qbt_qtnotify)
|
|
|
|
endif (UNIX AND Qt5DBus_FOUND)
|
2017-06-12 22:47:28 +03:00
|
|
|
|
|
|
|
if (APPLE)
|
2018-06-05 04:03:38 +03:00
|
|
|
target_sources(qbt_gui PRIVATE macutilities.h macutilities.mm)
|
|
|
|
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS MacExtras)
|
|
|
|
target_link_libraries(qbt_gui PRIVATE Qt5::MacExtras objc)
|
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
if (WIN32 OR APPLE)
|
|
|
|
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp)
|
|
|
|
endif (WIN32 OR APPLE)
|
|
|
|
|
|
|
|
qbt_target_sources(qBittorrent PRIVATE about.qrc)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras)
|
|
|
|
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras)
|
|
|
|
endif(WIN32)
|