projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmake: Modernize build system
[quassel.git]
/
src
/
client
/
CMakeLists.txt
diff --git
a/src/client/CMakeLists.txt
b/src/client/CMakeLists.txt
index
783e8dd
..
f23c62c
100644
(file)
--- a/
src/client/CMakeLists.txt
+++ b/
src/client/CMakeLists.txt
@@
-1,8
+1,6
@@
-# Builds the client module
+quassel_add_module(Client)
-# We still have a minor dep to QtWidgets: QAbstractItemView in BufferModel
-
-set(SOURCES
+target_sources(${TARGET} PRIVATE
abstractmessageprocessor.cpp
backlogrequester.cpp
buffermodel.cpp
abstractmessageprocessor.cpp
backlogrequester.cpp
buffermodel.cpp
@@
-35,11
+33,15
@@
set(SOURCES
# needed for automoc
abstractui.h
# needed for automoc
abstractui.h
-)
-
-qt5_add_resources(SOURCES ${CLIENT_RCS})
-add_library(mod_client STATIC ${SOURCES})
-
qt5_use_modules(mod_client Network Core Gui Widgets
)
+ ${CLIENT_RCS}
+)
-target_link_libraries(mod_client mod_common)
+target_link_libraries(${TARGET}
+ PUBLIC
+ Qt5::Core
+ Qt5::Gui
+ Qt5::Network
+ Qt5::Widgets # QAbstractItemView in BufferModel
+ Quassel::Common
+)