X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2FCMakeLists.txt;h=c0d6e4bd367d2ebb301e8167a584fc315ed453ef;hp=e3172aac787df2c4f6ed698e6806029d2b01b18a;hb=399cac566c86141228358a7e7e14b2375fdc3259;hpb=6cc1ac79609f6fc0d9a4ada5c815eef12d291ec8 diff --git a/src/uisupport/CMakeLists.txt b/src/uisupport/CMakeLists.txt index e3172aac..c0d6e4bd 100644 --- a/src/uisupport/CMakeLists.txt +++ b/src/uisupport/CMakeLists.txt @@ -1,63 +1,62 @@ # Builds the uisupport module -set(QT_DONT_USE_QTGUI 0) -set(QT_USE_QTNETWORK 1) -include(${QT_USE_FILE}) - set(SOURCES abstractbuffercontainer.cpp abstractitemview.cpp action.cpp actioncollection.cpp + bufferhotlistfilter.cpp bufferview.cpp bufferviewfilter.cpp + bufferviewoverlayfilter.cpp clearablelineedit.cpp + clickable.cpp clickablelabel.cpp colorbutton.cpp - icon.cpp - iconloader.cpp - inputline.cpp - networkmodelactionprovider.cpp + contextmenuactionprovider.cpp + flatproxymodel.cpp + fontselector.cpp + graphicalui.cpp + multilineedit.cpp + networkmodelcontroller.cpp nickview.cpp nickviewfilter.cpp + qssparser.cpp + resizingstackedwidget.cpp settingspage.cpp + styledlabel.cpp tabcompleter.cpp + toolbaractionprovider.cpp uisettings.cpp - uistyle.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 - iconloader.h - inputline.h - networkmodelactionprovider.h - nickview.h - nickviewfilter.h - settingspage.h - tabcompleter.h) - -set(HEADERS - icon.h - uisettings.h - uistyle.h) - -if(HAVE_KDE) - set(SOURCES ${SOURCES} kcmdlinewrapper.cpp) - set(HEADERS ${HEADERS} kcmdlinewrapper.h) -endif(HAVE_KDE) +) -qt4_wrap_cpp(MOC ${MOC_HDRS}) +if (WITH_KDE4) + include_directories(${KDE4_INCLUDES}) + add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS}) + set(SOURCES ${SOURCES} kcmdlinewrapper.cpp) +endif() include_directories(${CMAKE_SOURCE_DIR}/src/common - ${CMAKE_SOURCE_DIR}/src/client) + ${CMAKE_SOURCE_DIR}/src/client +) + +if (USE_QT5) + list(APPEND qt_modules Widgets) +endif() + +add_library(mod_uisupport STATIC ${SOURCES}) +qt_use_modules(mod_uisupport Core Gui Network ${qt_modules}) + +target_link_libraries(mod_uisupport mod_client mod_common) + +if (WITH_KDE4) + target_link_libraries(mod_uisupport ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBRARY}) +endif() -add_library(mod_uisupport STATIC ${SOURCES} ${MOC} ${HEADERS}) -add_dependencies(mod_uisupport mod_common mod_client) +if (WITH_KF5) + target_link_libraries(mod_uisupport KF5::TextWidgets) +endif()