b5fef022e0fae59fc228e442e6af092fcb3c161d
[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     clienttransfermanager.cpp
37     clientuserinputhandler.cpp
38     coreaccount.cpp
39     coreaccountmodel.cpp
40     coreconnection.cpp
41     execwrapper.cpp
42     irclistmodel.cpp
43     messagefilter.cpp
44     messagemodel.cpp
45     networkmodel.cpp
46     selectionmodelsynchronizer.cpp
47     treemodel.cpp)
48
49 set(MOC_HDRS
50     abstractmessageprocessor.h
51     abstractui.h
52     buffermodel.h
53     bufferviewoverlay.h
54     client.h
55     clientaliasmanager.h
56     clientauthhandler.h
57     clientbacklogmanager.h
58     clientbufferviewconfig.h
59     clientbufferviewmanager.h
60     clientcoreinfo.h
61     clientidentity.h
62     clientignorelistmanager.h
63     clientirclisthelper.h
64     clienttransfermanager.h
65     clientuserinputhandler.h
66     coreaccountmodel.h
67     coreconnection.h
68     execwrapper.h
69     irclistmodel.h
70     messagefilter.h
71     messagemodel.h
72     networkmodel.h
73     selectionmodelsynchronizer.h
74     treemodel.h)
75
76 set(HEADERS
77     backlogsettings.h
78     backlogrequester.h
79     buffersettings.h
80     clientsettings.h
81     coreaccount.h
82    )
83
84 include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
85
86 if(NOT WITH_QT5)
87   qt4_wrap_cpp(MOC ${MOC_HDRS})
88 endif(NOT WITH_QT5)
89
90 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
91 add_dependencies(mod_client mod_common)
92
93 set_target_properties(mod_client PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")