Prevent ChatView from scrolling up 1px on buffer switch, fixes #544
[quassel.git] / src / client / CMakeLists.txt
1 # Builds the client module
2
3 # We still have some minor deps to QtUi: QItemSelectionModel
4 # set(QT_DONT_USE_QTGUI 1)
5 set(QT_USE_QTNETWORK 1)
6 set(QT_USE_QTDBUS 1)
7 include(${QT_USE_FILE})
8
9 set(SOURCES
10     abstractmessageprocessor.cpp
11     abstractui.cpp
12     backlogrequester.cpp
13     buffermodel.cpp
14     buffersettings.cpp
15     client.cpp
16     clientbacklogmanager.cpp
17     clientbufferviewconfig.cpp
18     clientbufferviewmanager.cpp
19     clientidentity.cpp
20     clientirclisthelper.cpp
21     clientsettings.cpp
22     clientsyncer.cpp
23     irclistmodel.cpp
24     messagefilter.cpp
25     messagemodel.cpp
26     networkmodel.cpp
27     selectionmodelsynchronizer.cpp
28     treemodel.cpp)
29
30 set(MOC_HDRS
31     abstractmessageprocessor.h
32     abstractui.h
33     buffermodel.h
34     client.h
35     clientbacklogmanager.h
36     clientbufferviewconfig.h
37     clientbufferviewmanager.h
38     clientcoreinfo.h
39     clientidentity.h
40     clientirclisthelper.h
41     clientsyncer.h
42     irclistmodel.h
43     messagefilter.h
44     messagemodel.h
45     networkmodel.h
46     selectionmodelsynchronizer.h
47     treemodel.h)
48
49 set(HEADERS
50     backlogsettings.h
51     backlogrequester.h
52     buffersettings.h
53     clientsettings.h)
54
55 qt4_wrap_cpp(MOC ${MOC_HDRS})
56
57 include_directories(${CMAKE_SOURCE_DIR}/src/common)
58
59 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
60 add_dependencies(mod_client mod_common)