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