4780de0568c511ba16aa9790beb73f53e14ccada
[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     clientaliasmanager.cpp
17     clientbacklogmanager.cpp
18     clientbufferviewconfig.cpp
19     clientbufferviewmanager.cpp
20     clientidentity.cpp
21     clientirclisthelper.cpp
22     clientsettings.cpp
23     clientsyncer.cpp
24     clientuserinputhandler.cpp
25     irclistmodel.cpp
26     messagefilter.cpp
27     messagemodel.cpp
28     networkmodel.cpp
29     selectionmodelsynchronizer.cpp
30     treemodel.cpp)
31
32 set(MOC_HDRS
33     abstractmessageprocessor.h
34     abstractui.h
35     buffermodel.h
36     client.h
37     clientaliasmanager.h
38     clientbacklogmanager.h
39     clientbufferviewconfig.h
40     clientbufferviewmanager.h
41     clientcoreinfo.h
42     clientidentity.h
43     clientirclisthelper.h
44     clientuserinputhandler.h
45     clientsyncer.h
46     irclistmodel.h
47     messagefilter.h
48     messagemodel.h
49     networkmodel.h
50     selectionmodelsynchronizer.h
51     treemodel.h)
52
53 set(HEADERS
54     backlogsettings.h
55     backlogrequester.h
56     buffersettings.h
57     clientsettings.h)
58
59 qt4_wrap_cpp(MOC ${MOC_HDRS})
60
61 include_directories(${CMAKE_SOURCE_DIR}/src/common)
62
63 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
64 add_dependencies(mod_client mod_common)