Browse Source

CMake: Don't use subprojects in GUI subfolders

adaptive-webui-19844
Vladimir Golovnev (Glassez) 5 years ago
parent
commit
eeae308c29
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 86
      src/gui/CMakeLists.txt
  2. 11
      src/gui/log/CMakeLists.txt
  3. 8
      src/gui/powermanagement/CMakeLists.txt
  4. 38
      src/gui/properties/CMakeLists.txt
  5. 1
      src/gui/qtnotify/CMakeLists.txt
  6. 19
      src/gui/rss/CMakeLists.txt
  7. 22
      src/gui/search/CMakeLists.txt

86
src/gui/CMakeLists.txt

@ -20,14 +20,43 @@ add_library(qbt_gui STATIC @@ -20,14 +20,43 @@ add_library(qbt_gui STATIC
hidabletabwidget.h
ipsubnetwhitelistoptionsdialog.h
lineedit.h
log/logfiltermodel.h
log/loglistview.h
log/logmodel.h
mainwindow.h
optionsdialog.h
powermanagement/powermanagement.h
previewlistdelegate.h
previewselectdialog.h
private/fspathedit_p.h
private/tristatewidget.h
properties/downloadedpiecesbar.h
properties/peerlistdelegate.h
properties/peerlistsortmodel.h
properties/peerlistwidget.h
properties/peersadditiondialog.h
properties/pieceavailabilitybar.h
properties/piecesbar.h
properties/propertieswidget.h
properties/proplistdelegate.h
properties/proptabbar.h
properties/speedplotview.h
properties/speedwidget.h
properties/trackerlistwidget.h
properties/trackersadditiondialog.h
raisedmessagebox.h
rss/articlelistwidget.h
rss/automatedrssdownloader.h
rss/feedlistwidget.h
rss/htmlbrowser.h
rss/rsswidget.h
scanfoldersdelegate.h
search/pluginselectdialog.h
search/pluginsourcedialog.h
search/searchjobwidget.h
search/searchlistdelegate.h
search/searchsortmodel.h
search/searchwidget.h
shutdownconfirmdialog.h
speedlimitdialog.h
statsdialog.h
@ -72,14 +101,43 @@ add_library(qbt_gui STATIC @@ -72,14 +101,43 @@ add_library(qbt_gui STATIC
hidabletabwidget.cpp
ipsubnetwhitelistoptionsdialog.cpp
lineedit.cpp
log/logfiltermodel.cpp
log/loglistview.cpp
log/logmodel.cpp
mainwindow.cpp
optionsdialog.cpp
powermanagement/powermanagement.cpp
previewlistdelegate.cpp
previewselectdialog.cpp
private/fspathedit_p.cpp
private/tristatewidget.cpp
properties/downloadedpiecesbar.cpp
properties/peerlistdelegate.cpp
properties/peerlistsortmodel.cpp
properties/peerlistwidget.cpp
properties/peersadditiondialog.cpp
properties/pieceavailabilitybar.cpp
properties/piecesbar.cpp
properties/propertieswidget.cpp
properties/proplistdelegate.cpp
properties/proptabbar.cpp
properties/speedplotview.cpp
properties/speedwidget.cpp
properties/trackerlistwidget.cpp
properties/trackersadditiondialog.cpp
raisedmessagebox.cpp
rss/articlelistwidget.cpp
rss/automatedrssdownloader.cpp
rss/feedlistwidget.cpp
rss/htmlbrowser.cpp
rss/rsswidget.cpp
scanfoldersdelegate.cpp
search/pluginselectdialog.cpp
search/pluginsourcedialog.cpp
search/searchjobwidget.cpp
search/searchlistdelegate.cpp
search/searchsortmodel.cpp
search/searchwidget.cpp
shutdownconfirmdialog.cpp
speedlimitdialog.cpp
statsdialog.cpp
@ -119,6 +177,14 @@ add_library(qbt_gui STATIC @@ -119,6 +177,14 @@ add_library(qbt_gui STATIC
mainwindow.ui
optionsdialog.ui
previewselectdialog.ui
properties/peersadditiondialog.ui
properties/propertieswidget.ui
properties/trackersadditiondialog.ui
rss/automatedrssdownloader.ui
rss/rsswidget.ui
search/pluginselectdialog.ui
search/pluginsourcedialog.ui
search/searchwidget.ui
shutdownconfirmdialog.ui
speedlimitdialog.ui
statsdialog.ui
@ -135,15 +201,21 @@ if (WIN32 OR APPLE) @@ -135,15 +201,21 @@ if (WIN32 OR APPLE)
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp)
endif()
add_subdirectory(log)
add_subdirectory(properties)
add_subdirectory(powermanagement)
add_subdirectory(rss)
add_subdirectory(search)
if (UNIX AND Qt5DBus_FOUND)
add_subdirectory(qtnotify)
target_link_libraries(qbt_gui PRIVATE Qt5::DBus)
target_sources(qbt_gui PRIVATE
qtnotify/notifications.h
qtnotify/notifications.cpp
)
find_package(X11)
if (X11_FOUND)
target_sources(qbt_gui PRIVATE
powermanagement/powermanagement_x11.h
powermanagement/powermanagement_x11.cpp
)
endif()
endif()
target_link_libraries(qbt_gui

11
src/gui/log/CMakeLists.txt

@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
target_sources(qbt_gui PRIVATE
# headers
logfiltermodel.h
loglistview.h
logmodel.h
#sources
logfiltermodel.cpp
loglistview.cpp
logmodel.cpp
)

8
src/gui/powermanagement/CMakeLists.txt

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
target_sources(qbt_gui PRIVATE powermanagement.h powermanagement.cpp)
if (UNIX AND Qt5DBus_FOUND)
find_package(X11)
if (X11_FOUND)
target_sources(qbt_gui PRIVATE powermanagement_x11.h powermanagement_x11.cpp)
endif()
endif()

38
src/gui/properties/CMakeLists.txt

@ -1,38 +0,0 @@ @@ -1,38 +0,0 @@
target_sources(qbt_gui PRIVATE
# headers
downloadedpiecesbar.h
peerlistdelegate.h
peerlistsortmodel.h
peerlistwidget.h
peersadditiondialog.h
pieceavailabilitybar.h
piecesbar.h
propertieswidget.h
proplistdelegate.h
proptabbar.h
speedplotview.h
speedwidget.h
trackerlistwidget.h
trackersadditiondialog.h
# sources
downloadedpiecesbar.cpp
peerlistdelegate.cpp
peerlistsortmodel.cpp
peerlistwidget.cpp
peersadditiondialog.cpp
pieceavailabilitybar.cpp
piecesbar.cpp
propertieswidget.cpp
proplistdelegate.cpp
proptabbar.cpp
speedplotview.cpp
speedwidget.cpp
trackerlistwidget.cpp
trackersadditiondialog.cpp
# forms
peersadditiondialog.ui
propertieswidget.ui
trackersadditiondialog.ui
)

1
src/gui/qtnotify/CMakeLists.txt

@ -1 +0,0 @@ @@ -1 +0,0 @@
target_sources(qbt_gui PRIVATE notifications.h notifications.cpp)

19
src/gui/rss/CMakeLists.txt

@ -1,19 +0,0 @@ @@ -1,19 +0,0 @@
target_sources(qbt_gui PRIVATE
# headers
articlelistwidget.h
automatedrssdownloader.h
feedlistwidget.h
htmlbrowser.h
rsswidget.h
#sources
articlelistwidget.cpp
automatedrssdownloader.cpp
feedlistwidget.cpp
htmlbrowser.cpp
rsswidget.cpp
# forms
automatedrssdownloader.ui
rsswidget.ui
)

22
src/gui/search/CMakeLists.txt

@ -1,22 +0,0 @@ @@ -1,22 +0,0 @@
target_sources(qbt_gui PRIVATE
# headers
pluginselectdialog.h
pluginsourcedialog.h
searchjobwidget.h
searchlistdelegate.h
searchsortmodel.h
searchwidget.h
# sources
pluginselectdialog.cpp
pluginsourcedialog.cpp
searchjobwidget.cpp
searchlistdelegate.cpp
searchsortmodel.cpp
searchwidget.cpp
# forms
pluginselectdialog.ui
pluginsourcedialog.ui
searchwidget.ui
)
Loading…
Cancel
Save