projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: Mark several settingspage methods as final
[quassel.git]
/
src
/
client
/
CMakeLists.txt
diff --git
a/src/client/CMakeLists.txt
b/src/client/CMakeLists.txt
index
4eef7d5
..
7546443
100644
(file)
--- a/
src/client/CMakeLists.txt
+++ b/
src/client/CMakeLists.txt
@@
-1,9
+1,6
@@
-# Builds the client module
+quassel_add_module(Client EXPORT)
-# In Qt4, we still have some minor deps to QtGui: QItemSelectionModel, QSortFilterProxyModel
-# Still in Qt5: QAbstractItemView in BufferModel
-
-set(SOURCES
+target_sources(${TARGET} PRIVATE
abstractmessageprocessor.cpp
backlogrequester.cpp
buffermodel.cpp
abstractmessageprocessor.cpp
backlogrequester.cpp
buffermodel.cpp
@@
-31,20
+28,24
@@
set(SOURCES
messagemodel.cpp
networkmodel.cpp
selectionmodelsynchronizer.cpp
messagemodel.cpp
networkmodel.cpp
selectionmodelsynchronizer.cpp
+ transfermodel.cpp
treemodel.cpp
# needed for automoc
abstractui.h
treemodel.cpp
# needed for automoc
abstractui.h
- clientcoreinfo.h
)
)
-if (USE_QT5)
- list(APPEND qt_modules Widgets)
-endif()
-
-qt_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})
-qt_use_modules(mod_client Network Core Gui ${qt_modules})
+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
)