Implemented a channel browser (BR #176).
[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     clientirclisthelper.cpp
15     clientsettings.cpp
16     clientsyncer.cpp
17     irclistmodel.cpp
18     mappedselectionmodel.cpp
19     networkmodel.cpp
20     selectionmodelsynchronizer.cpp
21     treemodel.cpp)
22
23 set(MOC_HDRS
24     buffer.h
25     buffermodel.h
26     client.h
27     clientbacklogmanager.h
28     clientirclisthelper.h
29     clientsyncer.h
30     irclistmodel.h
31     networkmodel.h
32     mappedselectionmodel.h
33     quasselui.h
34     selectionmodelsynchronizer.h
35     treemodel.h)
36
37 set(HEADERS
38     buffersettings.h
39     clientsettings.h)
40
41 if(SPUTDEV)
42   set(SOURCES ${SOURCES} messagefilter.cpp messagemodel.cpp)
43   set(MOC_HDRS ${MOC_HDRS} messagefilter.h messagemodel.h)
44 endif(SPUTDEV)
45
46 qt4_wrap_cpp(MOC ${MOC_HDRS})
47
48 include_directories(${CMAKE_SOURCE_DIR}/src/common)
49
50 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
51 add_dependencies(mod_client mod_common)
52