X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2FCMakeLists.txt;h=345c4d17ed1cd385d73bc76b643df69fbe0d3cc8;hb=1e40fc6bc04df8f658f677ca5be4c970f150dc10;hp=8be2e95e18ec945b2034d2cd255a51df6b892a8b;hpb=84cd3561e97167ffb98ecab0fd2b884ba1d13ada;p=quassel.git diff --git a/src/uisupport/CMakeLists.txt b/src/uisupport/CMakeLists.txt index 8be2e95e..345c4d17 100644 --- a/src/uisupport/CMakeLists.txt +++ b/src/uisupport/CMakeLists.txt @@ -1,6 +1,7 @@ -# Builds the uisupport module +quassel_add_module(UiSupport) -set(SOURCES +target_sources(${TARGET} PRIVATE + aboutdata.cpp abstractbuffercontainer.cpp abstractitemview.cpp action.cpp @@ -18,7 +19,6 @@ set(SOURCES fontselector.cpp graphicalui.cpp icon.cpp - iconloader.cpp multilineedit.cpp networkmodelcontroller.cpp nickview.cpp @@ -29,6 +29,7 @@ set(SOURCES styledlabel.cpp tabcompleter.cpp toolbaractionprovider.cpp + treeviewtouch.cpp uisettings.cpp uistyle.cpp @@ -36,25 +37,26 @@ set(SOURCES abstractnotificationbackend.h ) -if (KDE4_FOUND) - 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 +target_link_libraries(${TARGET} + PUBLIC + Qt5::Core + Qt5::Gui + Qt5::Network + Qt5::Widgets + Quassel::Client + Quassel::Common ) -if (USE_QT5) - list(APPEND qt_modules Widgets) +if (WITH_KF5) + target_link_libraries(${TARGET} + PUBLIC + KF5::CoreAddons + KF5::TextWidgets + KF5::XmlGui + ) endif() -add_library(mod_uisupport STATIC ${SOURCES}) -qt_use_modules(mod_uisupport Core Gui Network ${qt_modules}) - -if (KDE4_FOUND) - target_link_libraries(mod_uisupport ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBRARY}) +if (KF5Sonnet_FOUND) + target_link_libraries(${TARGET} PRIVATE KF5::SonnetUi) + target_compile_definitions(${TARGET} PRIVATE -DHAVE_SONNET) endif() - -add_dependencies(mod_uisupport mod_common mod_client)