X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2FCMakeLists.txt;h=6f4f6690132261882f031b79069f63fbf004a9f3;hp=4eef7d54a8f641979c3180d6be77349c4510b5f1;hb=1a45f16a9734820fba42fe1db3f38dd1eee49df6;hpb=165298e0c0ef4666ed9c29f529e35fb4a37913ce diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 4eef7d54..6f4f6690 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,9 +1,6 @@ -# Builds the client module +quassel_add_module(Client) -# In Qt4, we still have some minor deps to QtGui: QItemSelectionModel, QSortFilterProxyModel -# Still in Qt5: QAbstractItemView in BufferModel - -set(SOURCES +target_sources(${TARGET} PRIVATE abstractmessageprocessor.cpp backlogrequester.cpp buffermodel.cpp @@ -31,20 +28,20 @@ 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}) - -add_library(mod_client STATIC ${SOURCES}) -qt_use_modules(mod_client Network Core Gui ${qt_modules}) +target_link_libraries(${TARGET} + PUBLIC + Qt5::Core + Qt5::Gui + Qt5::Network + Qt5::Widgets # QAbstractItemView in BufferModel + Quassel::Common +) -target_link_libraries(mod_client mod_common) +target_link_if_exists(${TARGET} PUBLIC Quassel::Resource::Data)