X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2FCMakeLists.txt;h=7546443101b0da4b636cb5a46ac3147eba585c38;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hp=783e8ddd4631feeb2a4fd54c209a894fb4453324;hpb=0216d4a650c02155b5bcd517567209f674d8a120;p=quassel.git diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 783e8ddd..75464431 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -1,8 +1,6 @@ -# Builds the client module +quassel_add_module(Client EXPORT) -# We still have a minor dep to QtWidgets: QAbstractItemView in BufferModel - -set(SOURCES +target_sources(${TARGET} PRIVATE abstractmessageprocessor.cpp backlogrequester.cpp buffermodel.cpp @@ -37,9 +35,17 @@ set(SOURCES abstractui.h ) -qt5_add_resources(SOURCES ${CLIENT_RCS}) +target_link_libraries(${TARGET} + PUBLIC + Qt5::Core + Qt5::Gui + Qt5::Network + Qt5::Widgets # QAbstractItemView in BufferModel + Quassel::Common +) -add_library(mod_client STATIC ${SOURCES}) -qt5_use_modules(mod_client Network Core Gui Widgets) +if (EMBED_DATA) + set_property(SOURCE client.cpp APPEND PROPERTY COMPILE_DEFINITIONS EMBED_DATA) +endif() -target_link_libraries(mod_client mod_common) +target_link_if_exists(${TARGET} PUBLIC Quassel::Resource::Data)