2015-11-06 21:03:18 +03:00
|
|
|
set(CMAKE_AUTORCC True)
|
|
|
|
set(CMAKE_AUTOUIC True)
|
|
|
|
|
2020-04-30 11:34:41 +03:00
|
|
|
add_library(qbt_gui STATIC
|
|
|
|
# headers
|
|
|
|
aboutdialog.h
|
|
|
|
addnewtorrentdialog.h
|
|
|
|
advancedsettings.h
|
|
|
|
autoexpandabledialog.h
|
|
|
|
banlistoptionsdialog.h
|
|
|
|
categoryfiltermodel.h
|
|
|
|
categoryfilterproxymodel.h
|
|
|
|
categoryfilterwidget.h
|
|
|
|
cookiesdialog.h
|
|
|
|
cookiesmodel.h
|
|
|
|
deletionconfirmationdialog.h
|
|
|
|
downloadfromurldialog.h
|
|
|
|
executionlogwidget.h
|
|
|
|
fspathedit.h
|
|
|
|
hidabletabwidget.h
|
|
|
|
ipsubnetwhitelistoptionsdialog.h
|
|
|
|
lineedit.h
|
|
|
|
mainwindow.h
|
|
|
|
optionsdialog.h
|
|
|
|
previewlistdelegate.h
|
|
|
|
previewselectdialog.h
|
|
|
|
private/fspathedit_p.h
|
|
|
|
private/tristatewidget.h
|
|
|
|
raisedmessagebox.h
|
|
|
|
scanfoldersdelegate.h
|
|
|
|
shutdownconfirmdialog.h
|
|
|
|
speedlimitdialog.h
|
|
|
|
statsdialog.h
|
|
|
|
statusbar.h
|
|
|
|
tagfiltermodel.h
|
|
|
|
tagfilterproxymodel.h
|
|
|
|
tagfilterwidget.h
|
|
|
|
torrentcategorydialog.h
|
|
|
|
torrentcontentfiltermodel.h
|
|
|
|
torrentcontentmodel.h
|
|
|
|
torrentcontentmodelfile.h
|
|
|
|
torrentcontentmodelfolder.h
|
|
|
|
torrentcontentmodelitem.h
|
|
|
|
torrentcontenttreeview.h
|
|
|
|
torrentcreatordialog.h
|
|
|
|
trackerentriesdialog.h
|
|
|
|
transferlistdelegate.h
|
|
|
|
transferlistfilterswidget.h
|
|
|
|
transferlistmodel.h
|
|
|
|
transferlistsortmodel.h
|
|
|
|
transferlistwidget.h
|
|
|
|
tristateaction.h
|
|
|
|
uithememanager.h
|
|
|
|
updownratiodialog.h
|
|
|
|
utils.h
|
|
|
|
|
|
|
|
# sources
|
|
|
|
aboutdialog.cpp
|
|
|
|
addnewtorrentdialog.cpp
|
|
|
|
advancedsettings.cpp
|
|
|
|
autoexpandabledialog.cpp
|
|
|
|
banlistoptionsdialog.cpp
|
|
|
|
categoryfiltermodel.cpp
|
|
|
|
categoryfilterproxymodel.cpp
|
|
|
|
categoryfilterwidget.cpp
|
|
|
|
cookiesdialog.cpp
|
|
|
|
cookiesmodel.cpp
|
|
|
|
deletionconfirmationdialog.cpp
|
|
|
|
downloadfromurldialog.cpp
|
|
|
|
executionlogwidget.cpp
|
|
|
|
fspathedit.cpp
|
|
|
|
hidabletabwidget.cpp
|
|
|
|
ipsubnetwhitelistoptionsdialog.cpp
|
|
|
|
lineedit.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
optionsdialog.cpp
|
|
|
|
previewlistdelegate.cpp
|
|
|
|
previewselectdialog.cpp
|
|
|
|
private/fspathedit_p.cpp
|
|
|
|
private/tristatewidget.cpp
|
|
|
|
raisedmessagebox.cpp
|
|
|
|
scanfoldersdelegate.cpp
|
|
|
|
shutdownconfirmdialog.cpp
|
|
|
|
speedlimitdialog.cpp
|
|
|
|
statsdialog.cpp
|
|
|
|
statusbar.cpp
|
|
|
|
tagfiltermodel.cpp
|
|
|
|
tagfilterproxymodel.cpp
|
|
|
|
tagfilterwidget.cpp
|
|
|
|
torrentcategorydialog.cpp
|
|
|
|
torrentcontentfiltermodel.cpp
|
|
|
|
torrentcontentmodel.cpp
|
|
|
|
torrentcontentmodelfile.cpp
|
|
|
|
torrentcontentmodelfolder.cpp
|
|
|
|
torrentcontentmodelitem.cpp
|
|
|
|
torrentcontenttreeview.cpp
|
|
|
|
torrentcreatordialog.cpp
|
|
|
|
trackerentriesdialog.cpp
|
|
|
|
transferlistdelegate.cpp
|
|
|
|
transferlistfilterswidget.cpp
|
|
|
|
transferlistmodel.cpp
|
|
|
|
transferlistsortmodel.cpp
|
|
|
|
transferlistwidget.cpp
|
|
|
|
tristateaction.cpp
|
|
|
|
uithememanager.cpp
|
|
|
|
updownratiodialog.cpp
|
|
|
|
utils.cpp
|
|
|
|
|
|
|
|
# forms
|
|
|
|
aboutdialog.ui
|
|
|
|
addnewtorrentdialog.ui
|
|
|
|
autoexpandabledialog.ui
|
|
|
|
banlistoptionsdialog.ui
|
|
|
|
cookiesdialog.ui
|
|
|
|
deletionconfirmationdialog.ui
|
|
|
|
downloadfromurldialog.ui
|
|
|
|
executionlogwidget.ui
|
|
|
|
ipsubnetwhitelistoptionsdialog.ui
|
|
|
|
mainwindow.ui
|
|
|
|
optionsdialog.ui
|
|
|
|
previewselectdialog.ui
|
|
|
|
shutdownconfirmdialog.ui
|
|
|
|
speedlimitdialog.ui
|
|
|
|
statsdialog.ui
|
|
|
|
torrentcategorydialog.ui
|
|
|
|
torrentcreatordialog.ui
|
|
|
|
trackerentriesdialog.ui
|
|
|
|
updownratiodialog.ui
|
|
|
|
|
|
|
|
# resources
|
|
|
|
about.qrc
|
|
|
|
)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2020-04-30 11:34:41 +03:00
|
|
|
if (WIN32 OR APPLE)
|
|
|
|
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(log)
|
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
|
|
|
|
2020-04-30 11:34:41 +03:00
|
|
|
if (UNIX AND Qt5DBus_FOUND)
|
|
|
|
add_subdirectory(qtnotify)
|
|
|
|
target_link_libraries(qbt_gui PRIVATE Qt5::DBus)
|
|
|
|
endif()
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
target_link_libraries(qbt_gui
|
|
|
|
PRIVATE
|
|
|
|
qbt_base
|
2020-04-30 11:34:41 +03:00
|
|
|
PUBLIC
|
|
|
|
Qt5::Gui Qt5::Widgets
|
2018-06-05 04:03:38 +03:00
|
|
|
)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
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)
|
2020-04-30 11:34:41 +03:00
|
|
|
endif()
|
2018-06-05 04:03:38 +03:00
|
|
|
|
2020-04-30 11:34:41 +03:00
|
|
|
if (WIN32)
|
2018-06-05 04:03:38 +03:00
|
|
|
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras)
|
2020-04-30 11:34:41 +03:00
|
|
|
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras PowrProf)
|
|
|
|
endif()
|