Abstract away the protocol handshake code
[quassel.git] / src / client / CMakeLists.txt
1 # Builds the client module
2
3 # In Qt4, we still have some minor deps to QtUi: QItemSelectionModel, QSortFilterProxyModel
4 # Still in Qt5: QAbstractItemView in BufferModel
5
6 set(_modules )
7
8 if(WITH_QT5)
9   list(APPEND _modules Widgets)
10 endif(WITH_QT5)
11
12 if(HAVE_DBUS)
13   list(APPEND _modules DBus)
14 endif(HAVE_DBUS)
15
16 setup_qt_variables(Gui Network ${_modules})
17
18 set(SOURCES
19     abstractmessageprocessor.cpp
20     abstractui.cpp
21     backlogrequester.cpp
22     buffermodel.cpp
23     buffersettings.cpp
24     bufferviewoverlay.cpp
25     client.cpp
26     clientaliasmanager.cpp
27     clientauthhandler.cpp
28     clientbacklogmanager.cpp
29     clientbufferviewconfig.cpp
30     clientbufferviewmanager.cpp
31     clientcoreinfo.cpp
32     clientidentity.cpp
33     clientignorelistmanager.cpp
34     clientirclisthelper.cpp
35     clientsettings.cpp
36     clientuserinputhandler.cpp
37     coreaccount.cpp
38     coreaccountmodel.cpp
39     coreconnection.cpp
40     execwrapper.cpp
41     irclistmodel.cpp
42     messagefilter.cpp
43     messagemodel.cpp
44     networkmodel.cpp
45     selectionmodelsynchronizer.cpp
46     treemodel.cpp)
47
48 set(MOC_HDRS
49     abstractmessageprocessor.h
50     abstractui.h
51     buffermodel.h
52     bufferviewoverlay.h
53     client.h
54     clientaliasmanager.h
55     clientauthhandler.h
56     clientbacklogmanager.h
57     clientbufferviewconfig.h
58     clientbufferviewmanager.h
59     clientcoreinfo.h
60     clientidentity.h
61     clientignorelistmanager.h
62     clientirclisthelper.h
63     clientuserinputhandler.h
64     coreaccountmodel.h
65     coreconnection.h
66     execwrapper.h
67     irclistmodel.h
68     messagefilter.h
69     messagemodel.h
70     networkmodel.h
71     selectionmodelsynchronizer.h
72     treemodel.h)
73
74 set(HEADERS
75     backlogsettings.h
76     backlogrequester.h
77     buffersettings.h
78     clientsettings.h
79     coreaccount.h
80    )
81
82 include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
83
84 if(NOT WITH_QT5)
85   qt4_wrap_cpp(MOC ${MOC_HDRS})
86 endif(NOT WITH_QT5)
87
88 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
89 add_dependencies(mod_client mod_common)
90
91 set_target_properties(mod_client PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")