- treemodel.cpp)
-
-set(MOC_HDRS
- buffer.h
- buffermodel.h
- client.h
- clientbacklogmanager.h
- clientcoreinfo.h
- clientirclisthelper.h
- clientsyncer.h
- desktopnotifications.h
- irclistmodel.h
- networkmodel.h
- mappedselectionmodel.h
- quasselui.h
- selectionmodelsynchronizer.h
- treemodel.h)
-
-set(HEADERS
- buffersettings.h
- clientsettings.h)
-
-if(SPUTDEV)
- set(SOURCES ${SOURCES} messagefilter.cpp messagemodel.cpp)
- set(MOC_HDRS ${MOC_HDRS} messagefilter.h messagemodel.h)
-endif(SPUTDEV)
-
-qt4_wrap_cpp(MOC ${MOC_HDRS})
-
-include_directories(${CMAKE_SOURCE_DIR}/src/common)
-
-add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
-add_dependencies(mod_client mod_common)
-
+ transfermodel.cpp
+ treemodel.cpp
+
+ # needed for automoc
+ abstractui.h
+)
+
+target_link_libraries(${TARGET}
+ PUBLIC
+ Qt5::Core
+ Qt5::Gui
+ Qt5::Network
+ Qt5::Widgets # QAbstractItemView in BufferModel
+ Quassel::Common
+)
+
+if (EMBED_DATA)
+ set_property(SOURCE client.cpp APPEND PROPERTY COMPILE_DEFINITIONS EMBED_DATA)
+endif()
+
+target_link_if_exists(${TARGET} PUBLIC Quassel::Resource::Data)