X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2FCMakeLists.txt;h=783e8ddd4631feeb2a4fd54c209a894fb4453324;hb=ab7ef4d24f62b5848b628482b7762ebfc0b53e1a;hp=4eef7d54a8f641979c3180d6be77349c4510b5f1;hpb=d82f98b8cf9c7c83f3aab1d7f010ccf8bdd2c003;p=quassel.git diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 4eef7d54..783e8ddd 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,7 +1,6 @@ # 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 @@ -31,20 +30,16 @@ set(SOURCES messagemodel.cpp networkmodel.cpp selectionmodelsynchronizer.cpp + transfermodel.cpp treemodel.cpp # needed for automoc abstractui.h - clientcoreinfo.h ) -if (USE_QT5) - list(APPEND qt_modules Widgets) -endif() - -qt_add_resources(SOURCES ${CLIENT_RCS}) +qt5_add_resources(SOURCES ${CLIENT_RCS}) add_library(mod_client STATIC ${SOURCES}) -qt_use_modules(mod_client Network Core Gui ${qt_modules}) +qt5_use_modules(mod_client Network Core Gui Widgets) target_link_libraries(mod_client mod_common)