qBittorrent/src/gui/CMakeLists.txt

173 lines
3.8 KiB
Text
Raw Normal View History

2015-11-06 21:03:18 +03:00
set(CMAKE_AUTORCC True)
set(CMAKE_AUTOUIC True)
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)
add_library(qbt_gui STATIC
# headers
aboutdialog.h
2015-11-06 21:03:18 +03:00
addnewtorrentdialog.h
advancedsettings.h
autoexpandabledialog.h
banlistoptionsdialog.h
2017-01-21 02:32:00 +03:00
categoryfiltermodel.h
categoryfilterproxymodel.h
2017-01-21 02:32:00 +03:00
categoryfilterwidget.h
2016-04-12 03:07:10 +03:00
cookiesdialog.h
cookiesmodel.h
deletionconfirmationdialog.h
downloadfromurldialog.h
executionlogwidget.h
fspathedit.h
2015-11-06 21:03:18 +03:00
hidabletabwidget.h
ipsubnetwhitelistoptionsdialog.h
2019-07-13 09:05:35 +03:00
lineedit.h
2015-11-06 21:03:18 +03:00
loglistwidget.h
mainwindow.h
optionsdialog.h
2015-11-06 21:03:18 +03:00
previewlistdelegate.h
previewselectdialog.h
2019-07-24 18:01:26 +03:00
private/fspathedit_p.h
private/tristatewidget.h
raisedmessagebox.h
2015-11-06 21:03:18 +03:00
scanfoldersdelegate.h
shutdownconfirmdialog.h
speedlimitdialog.h
2015-11-06 21:03:18 +03:00
statsdialog.h
statusbar.h
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
torrentcreatordialog.h
2019-06-24 18:37:31 +03:00
trackerentriesdialog.h
2015-11-06 21:03:18 +03:00
transferlistdelegate.h
transferlistfilterswidget.h
transferlistmodel.h
2015-11-06 21:03:18 +03:00
transferlistsortmodel.h
transferlistwidget.h
tristateaction.h
2019-07-09 17:26:55 +03:00
uithememanager.h
updownratiodialog.h
utils.h
# 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
banlistoptionsdialog.cpp
2017-01-21 02:32:00 +03:00
categoryfiltermodel.cpp
categoryfilterproxymodel.cpp
2017-01-21 02:32:00 +03:00
categoryfilterwidget.cpp
2016-04-12 03:07:10 +03:00
cookiesdialog.cpp
cookiesmodel.cpp
deletionconfirmationdialog.cpp
downloadfromurldialog.cpp
executionlogwidget.cpp
fspathedit.cpp
2019-07-17 16:57:52 +03:00
hidabletabwidget.cpp
ipsubnetwhitelistoptionsdialog.cpp
2019-07-13 09:05:35 +03:00
lineedit.cpp
2015-11-06 21:03:18 +03:00
loglistwidget.cpp
mainwindow.cpp
optionsdialog.cpp
2019-07-17 16:57:52 +03:00
previewlistdelegate.cpp
previewselectdialog.cpp
2019-07-24 18:01:26 +03:00
private/fspathedit_p.cpp
private/tristatewidget.cpp
raisedmessagebox.cpp
2015-11-06 21:03:18 +03:00
scanfoldersdelegate.cpp
shutdownconfirmdialog.cpp
speedlimitdialog.cpp
2015-11-06 21:03:18 +03:00
statsdialog.cpp
statusbar.cpp
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
torrentcreatordialog.cpp
2019-06-24 18:37:31 +03:00
trackerentriesdialog.cpp
2015-11-06 21:03:18 +03:00
transferlistdelegate.cpp
transferlistfilterswidget.cpp
transferlistmodel.cpp
2015-11-06 21:03:18 +03:00
transferlistsortmodel.cpp
transferlistwidget.cpp
tristateaction.cpp
2019-07-09 17:26:55 +03:00
uithememanager.cpp
updownratiodialog.cpp
utils.cpp
# forms
aboutdialog.ui
addnewtorrentdialog.ui
autoexpandabledialog.ui
banlistoptionsdialog.ui
2016-04-12 03:07:10 +03:00
cookiesdialog.ui
deletionconfirmationdialog.ui
downloadfromurldialog.ui
executionlogwidget.ui
ipsubnetwhitelistoptionsdialog.ui
mainwindow.ui
optionsdialog.ui
previewselectdialog.ui
shutdownconfirmdialog.ui
speedlimitdialog.ui
2015-11-06 21:03:18 +03:00
statsdialog.ui
2017-09-24 14:54:42 +03:00
torrentcategorydialog.ui
torrentcreatordialog.ui
2019-06-24 18:37:31 +03:00
trackerentriesdialog.ui
updownratiodialog.ui
2015-11-06 21:03:18 +03:00
)
target_link_libraries(qbt_gui
PRIVATE
2019-07-13 09:05:35 +03:00
qbt_powermanagement qbt_rss qbt_properties qbt_searchengine
qbt_base
)
2015-11-06 21:03:18 +03:00
target_include_directories(qbt_gui
PRIVATE ../app
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
)
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)
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)