Make compile on top of the current master branch
[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     desktopnotifications.cpp
19     irclistmodel.cpp
20     mappedselectionmodel.cpp
21     networkmodel.cpp
22     selectionmodelsynchronizer.cpp
23     treemodel.cpp)
24
25 set(MOC_HDRS
26     buffer.h
27     buffermodel.h
28     client.h
29     clientbacklogmanager.h
30     clientcoreinfo.h
31     clientirclisthelper.h
32     clientsyncer.h
33     desktopnotifications.h
34     irclistmodel.h
35     networkmodel.h
36     mappedselectionmodel.h
37     quasselui.h
38     selectionmodelsynchronizer.h
39     treemodel.h)
40
41 set(HEADERS
42     buffersettings.h
43     clientsettings.h)
44
45 if(SPUTDEV)
46   set(SOURCES ${SOURCES} messagefilter.cpp messagemodel.cpp)
47   set(MOC_HDRS ${MOC_HDRS} messagefilter.h messagemodel.h)
48 endif(SPUTDEV)
49
50 qt4_wrap_cpp(MOC ${MOC_HDRS})
51
52 include_directories(${CMAKE_SOURCE_DIR}/src/common)
53
54 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
55 add_dependencies(mod_client mod_common)
56