39436cb699b51b26c2a2122c875e94db98042efc
[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 include(${QT_USE_FILE})
7
8 set(SOURCES
9     buffer.cpp
10     buffermodel.cpp
11     buffersettings.cpp
12     client.cpp
13     clientbacklogmanager.cpp
14     clientsettings.cpp
15     clientsyncer.cpp
16     mappedselectionmodel.cpp
17     networkmodel.cpp
18     selectionmodelsynchronizer.cpp
19     treemodel.cpp)
20
21 set(MOC_HDRS
22     buffer.h
23     buffermodel.h
24     client.h
25     clientbacklogmanager.h
26     clientsyncer.h
27     networkmodel.h
28     mappedselectionmodel.h
29     quasselui.h
30     selectionmodelsynchronizer.h
31     treemodel.h)
32
33 set(HEADERS
34     buffersettings.h
35     clientsettings.h)
36
37 if(SPUTDEV)
38   set(SOURCES ${SOURCES} messagefilter.cpp messagemodel.cpp)
39   set(MOC_HDRS ${MOC_HDRS} messagefilter.h messagemodel.h)
40 endif(SPUTDEV)
41
42 qt4_wrap_cpp(MOC ${MOC_HDRS})
43
44 include_directories(${CMAKE_SOURCE_DIR}/src/common)
45
46 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
47 add_dependencies(mod_client mod_common)
48