X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2FCMakeLists.txt;h=034742319763ab9a3fe7b660ab9be2c9efab9662;hp=d1c82b2788c9594fa4faf4805b304fdddaedb778;hb=0216d4a650c02155b5bcd517567209f674d8a120;hpb=a540a0285feef171e16fd6225b0e045fc5fc52e4 diff --git a/src/uisupport/CMakeLists.txt b/src/uisupport/CMakeLists.txt index d1c82b27..03474231 100644 --- a/src/uisupport/CMakeLists.txt +++ b/src/uisupport/CMakeLists.txt @@ -1,69 +1,56 @@ # Builds the uisupport module -set(QT_DONT_USE_QTGUI 0) -set(QT_USE_QTNETWORK 1) -include(${QT_USE_FILE}) - set(SOURCES + aboutdata.cpp abstractbuffercontainer.cpp abstractitemview.cpp action.cpp actioncollection.cpp + bufferhotlistfilter.cpp bufferview.cpp bufferviewfilter.cpp + bufferviewoverlayfilter.cpp clearablelineedit.cpp + clickable.cpp clickablelabel.cpp colorbutton.cpp contextmenuactionprovider.cpp + flatproxymodel.cpp + fontselector.cpp graphicalui.cpp icon.cpp - iconloader.cpp - inputline.cpp + multilineedit.cpp + networkmodelcontroller.cpp nickview.cpp nickviewfilter.cpp + qssparser.cpp + resizingstackedwidget.cpp settingspage.cpp + styledlabel.cpp tabcompleter.cpp - #toolbaractionprovider.cpp + toolbaractionprovider.cpp + treeviewtouch.cpp uisettings.cpp uistyle.cpp - ) -set(MOC_HDRS - abstractbuffercontainer.h - abstractitemview.h + # needed for automoc abstractnotificationbackend.h - action.h - actioncollection.h - bufferview.h - bufferviewfilter.h - clearablelineedit.h - clickablelabel.h - colorbutton.h - contextmenuactionprovider.h - graphicalui.h - iconloader.h - inputline.h - nickview.h - nickviewfilter.h - settingspage.h - tabcompleter.h - #toolbaractionprovider.h - ) +) -set(HEADERS - icon.h - uisettings.h - uistyle.h) +include_directories(${CMAKE_SOURCE_DIR}/src/common + ${CMAKE_SOURCE_DIR}/src/client +) -if(HAVE_KDE) - set(SOURCES ${SOURCES} kcmdlinewrapper.cpp) - set(HEADERS ${HEADERS} kcmdlinewrapper.h) -endif(HAVE_KDE) +add_library(mod_uisupport STATIC ${SOURCES}) +qt5_use_modules(mod_uisupport Core Gui Network Widgets) -qt4_wrap_cpp(MOC ${MOC_HDRS}) +target_link_libraries(mod_uisupport mod_client mod_common) -include_directories(${CMAKE_SOURCE_DIR}/src/common - ${CMAKE_SOURCE_DIR}/src/client) +if (WITH_KF5) + target_link_libraries(mod_uisupport KF5::CoreAddons KF5::TextWidgets KF5::XmlGui) +endif() -add_library(mod_uisupport STATIC ${SOURCES} ${MOC} ${HEADERS}) -add_dependencies(mod_uisupport mod_common mod_client) +if (KF5Sonnet_FOUND) + add_definitions(-DHAVE_SONNET) + target_link_libraries(mod_uisupport KF5::SonnetUi) +endif()