X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2FCMakeLists.txt;h=783e8ddd4631feeb2a4fd54c209a894fb4453324;hb=4e43a17088e8ff76c220bd8b4ebf37d9dbb4863a;hp=c8519070f82af1611070a59f3eb27ab77c778545;hpb=c4b281a2f246e87c216d99c8c7f7bcd26b025cc0;p=quassel.git diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index c8519070..783e8ddd 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,10 +1,6 @@ # Builds the client module -# We still have some minor deps to QtUi: QItemSelectionModel -# set(QT_DONT_USE_QTGUI 1) -set(QT_USE_QTNETWORK 1) -set(QT_USE_QTDBUS 1) -include(${QT_USE_FILE}) +# We still have a minor dep to QtWidgets: QAbstractItemView in BufferModel set(SOURCES abstractmessageprocessor.cpp @@ -14,6 +10,7 @@ set(SOURCES bufferviewoverlay.cpp client.cpp clientaliasmanager.cpp + clientauthhandler.cpp clientbacklogmanager.cpp clientbufferviewconfig.cpp clientbufferviewmanager.cpp @@ -21,6 +18,8 @@ set(SOURCES clientignorelistmanager.cpp clientirclisthelper.cpp clientsettings.cpp + clienttransfer.cpp + clienttransfermanager.cpp clientuserinputhandler.cpp coreaccount.cpp coreaccountmodel.cpp @@ -31,44 +30,16 @@ set(SOURCES messagemodel.cpp networkmodel.cpp selectionmodelsynchronizer.cpp - treemodel.cpp) + transfermodel.cpp + treemodel.cpp -set(MOC_HDRS - abstractmessageprocessor.h + # needed for automoc abstractui.h - buffermodel.h - bufferviewoverlay.h - client.h - clientaliasmanager.h - clientbacklogmanager.h - clientbufferviewconfig.h - clientbufferviewmanager.h - clientcoreinfo.h - clientidentity.h - clientignorelistmanager.h - clientirclisthelper.h - clientuserinputhandler.h - coreaccountmodel.h - coreconnection.h - execwrapper.h - irclistmodel.h - messagefilter.h - messagemodel.h - networkmodel.h - selectionmodelsynchronizer.h - treemodel.h) +) -set(HEADERS - backlogsettings.h - backlogrequester.h - buffersettings.h - clientsettings.h - coreaccount.h - ) +qt5_add_resources(SOURCES ${CLIENT_RCS}) -qt4_wrap_cpp(MOC ${MOC_HDRS}) +add_library(mod_client STATIC ${SOURCES}) +qt5_use_modules(mod_client Network Core Gui Widgets) -include_directories(${CMAKE_SOURCE_DIR}/src/common) - -add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS}) -add_dependencies(mod_client mod_common) +target_link_libraries(mod_client mod_common)