# Builds the client module
-# In Qt4, we still have some minor deps to QtGui: QItemSelectionModel, QSortFilterProxyModel
-# Still in Qt5: QAbstractItemView in BufferModel
+# We still have a minor dep to QtWidgets: QAbstractItemView in BufferModel
set(SOURCES
abstractmessageprocessor.cpp
messagemodel.cpp
networkmodel.cpp
selectionmodelsynchronizer.cpp
+ transfermodel.cpp
treemodel.cpp
# needed for automoc
abstractui.h
- clientcoreinfo.h
)
-if (WITH_QT5)
- list(APPEND qt_modules Widgets)
-endif()
-
-if (HAVE_DBUS)
- list(APPEND qt_modules DBus)
-endif()
+qt5_add_resources(SOURCES ${CLIENT_RCS})
add_library(mod_client STATIC ${SOURCES})
-qt_use_modules(mod_client Network Core Gui ${qt_modules})
-add_dependencies(mod_client mod_common)
+qt5_use_modules(mod_client Network Core Gui Widgets)
+
+target_link_libraries(mod_client mod_common)