X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2FCMakeLists.txt;h=345c4d17ed1cd385d73bc76b643df69fbe0d3cc8;hb=4ce53949ab7d52a49ae79b8817bd3aa50fada0d1;hp=034742319763ab9a3fe7b660ab9be2c9efab9662;hpb=48d41896ba35eafc64b4cb00e446d6123b3502cb;p=quassel.git diff --git a/src/uisupport/CMakeLists.txt b/src/uisupport/CMakeLists.txt index 03474231..345c4d17 100644 --- a/src/uisupport/CMakeLists.txt +++ b/src/uisupport/CMakeLists.txt @@ -1,6 +1,6 @@ -# Builds the uisupport module +quassel_add_module(UiSupport) -set(SOURCES +target_sources(${TARGET} PRIVATE aboutdata.cpp abstractbuffercontainer.cpp abstractitemview.cpp @@ -37,20 +37,26 @@ set(SOURCES abstractnotificationbackend.h ) -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 ) -add_library(mod_uisupport STATIC ${SOURCES}) -qt5_use_modules(mod_uisupport Core Gui Network Widgets) - -target_link_libraries(mod_uisupport mod_client mod_common) - if (WITH_KF5) - target_link_libraries(mod_uisupport KF5::CoreAddons KF5::TextWidgets KF5::XmlGui) + target_link_libraries(${TARGET} + PUBLIC + KF5::CoreAddons + KF5::TextWidgets + KF5::XmlGui + ) endif() if (KF5Sonnet_FOUND) - add_definitions(-DHAVE_SONNET) - target_link_libraries(mod_uisupport KF5::SonnetUi) + target_link_libraries(${TARGET} PRIVATE KF5::SonnetUi) + target_compile_definitions(${TARGET} PRIVATE -DHAVE_SONNET) endif()