qBittorrent/src/gui/CMakeLists.txt

163 lines
3.6 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(lineedit)
add_subdirectory(properties)
add_subdirectory(powermanagement)
add_subdirectory(rss)
add_subdirectory(search)
add_library(qbt_gui STATIC
# headers
2015-11-06 21:03:18 +03:00
about_imp.h
addnewtorrentdialog.h
advancedsettings.h
autoexpandabledialog.h
2017-03-08 11:12:49 +03:00
banlistoptions.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
2015-11-06 21:03:18 +03:00
deletionconfirmationdlg.h
downloadfromurldialog.h
2015-11-06 21:03:18 +03:00
executionlog.h
fspathedit.h
fspathedit_p.h
2015-11-06 21:03:18 +03:00
guiiconprovider.h
hidabletabwidget.h
ipsubnetwhitelistoptionsdialog.h
2015-11-06 21:03:18 +03:00
loglistwidget.h
mainwindow.h
messageboxraised.h
optionsdlg.h
2015-11-06 21:03:18 +03:00
previewlistdelegate.h
previewselectdialog.h
2015-11-06 21:03:18 +03:00
scanfoldersdelegate.h
shutdownconfirmdlg.h
2015-11-06 21:03:18 +03:00
speedlimitdlg.h
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
torrentcreatordlg.h
torrentmodel.h
trackerlogin.h
transferlistdelegate.h
transferlistfilterswidget.h
transferlistsortmodel.h
transferlistwidget.h
updownratiodlg.h
utils.h
# sources
2015-11-06 21:03:18 +03:00
addnewtorrentdialog.cpp
advancedsettings.cpp
autoexpandabledialog.cpp
2017-03-08 11:12:49 +03:00
banlistoptions.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
downloadfromurldialog.cpp
2015-11-06 21:03:18 +03:00
executionlog.cpp
fspathedit.cpp
fspathedit_p.cpp
2015-11-06 21:03:18 +03:00
guiiconprovider.cpp
ipsubnetwhitelistoptionsdialog.cpp
2015-11-06 21:03:18 +03:00
loglistwidget.cpp
mainwindow.cpp
messageboxraised.cpp
optionsdlg.cpp
previewselectdialog.cpp
2015-11-06 21:03:18 +03:00
scanfoldersdelegate.cpp
shutdownconfirmdlg.cpp
2015-11-06 21:03:18 +03:00
speedlimitdlg.cpp
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
torrentcreatordlg.cpp
torrentmodel.cpp
trackerlogin.cpp
transferlistdelegate.cpp
transferlistfilterswidget.cpp
transferlistsortmodel.cpp
transferlistwidget.cpp
updownratiodlg.cpp
utils.cpp
# forms
2015-11-06 21:03:18 +03:00
mainwindow.ui
about.ui
2017-03-08 11:12:49 +03:00
banlistoptions.ui
2016-04-12 03:07:10 +03:00
cookiesdialog.ui
ipsubnetwhitelistoptionsdialog.ui
previewselectdialog.ui
2015-11-06 21:03:18 +03:00
login.ui
downloadfromurldialog.ui
2015-11-06 21:03:18 +03:00
bandwidth_limit.ui
updownratiodlg.ui
confirmdeletiondlg.ui
executionlog.ui
addnewtorrentdialog.ui
autoexpandabledialog.ui
statsdialog.ui
optionsdlg.ui
2017-09-24 14:54:42 +03:00
torrentcategorydialog.ui
2015-11-06 21:03:18 +03:00
torrentcreatordlg.ui
shutdownconfirmdlg.ui
2015-11-06 21:03:18 +03:00
)
target_link_libraries(qbt_gui
PRIVATE
qbt_lineedit qbt_powermanagement qbt_rss qbt_properties qbt_searchengine
qbt_base
QtSingleApplication::QtSingleApplication
)
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)