X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2FCMakeLists.txt;h=756a5409267f4083753e6a774eae6f6c712c8a24;hb=d46e1e86c9869996285ac3f88970cf0e9e23e128;hp=935ba8629f880a4f23a2cb636bf3e796a86fd020;hpb=3d3a6b8d34b9d0ab3a2502936c49c0d0d5e91617;p=quassel.git diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 935ba862..756a5409 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,11 +1,9 @@ -# Builds the client module +quassel_add_module(Client EXPORT) -# 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 + backlogsettings.cpp buffermodel.cpp buffersettings.cpp bufferviewoverlay.cpp @@ -31,21 +29,24 @@ 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() +target_link_libraries(${TARGET} + PUBLIC + Qt5::Core + Qt5::Gui + Qt5::Network + Qt5::Widgets # QAbstractItemView in BufferModel + Quassel::Common +) -if (HAVE_DBUS) - list(APPEND qt_modules DBus) +if (EMBED_DATA) + set_property(SOURCE client.cpp APPEND PROPERTY COMPILE_DEFINITIONS EMBED_DATA) endif() -add_library(mod_client STATIC ${SOURCES}) -qt_use_modules(mod_client Network Core Gui ${qt_modules}) -add_dependencies(mod_client mod_common) +target_link_if_exists(${TARGET} PUBLIC Quassel::Resource::Data)