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