53fc76122ca5703a8e3d28a51e2cf75edfc5df97
[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 if (QCA2_FOUND)
10   include_directories(${QCA2_INCLUDE_DIR})
11 endif (QCA2_FOUND)
12
13 set(SOURCES
14     abstractmessageprocessor.cpp
15     backlogrequester.cpp
16     buffermodel.cpp
17     buffersettings.cpp
18     bufferviewoverlay.cpp
19     client.cpp
20     clientaliasmanager.cpp
21     clientbacklogmanager.cpp
22     clientbufferviewconfig.cpp
23     clientbufferviewmanager.cpp
24     clientidentity.cpp
25     clientignorelistmanager.cpp
26     clientirclisthelper.cpp
27     clientsettings.cpp
28     clientuserinputhandler.cpp
29     coreaccount.cpp
30     coreaccountmodel.cpp
31     coreconnection.cpp
32     execwrapper.cpp
33     irclistmodel.cpp
34     messagefilter.cpp
35     messagemodel.cpp
36     networkmodel.cpp
37     selectionmodelsynchronizer.cpp
38     treemodel.cpp)
39
40 set(MOC_HDRS
41     abstractmessageprocessor.h
42     abstractui.h
43     buffermodel.h
44     bufferviewoverlay.h
45     client.h
46     clientaliasmanager.h
47     clientbacklogmanager.h
48     clientbufferviewconfig.h
49     clientbufferviewmanager.h
50     clientcoreinfo.h
51     clientidentity.h
52     clientignorelistmanager.h
53     clientirclisthelper.h
54     clientuserinputhandler.h
55     coreaccountmodel.h
56     coreconnection.h
57     execwrapper.h
58     irclistmodel.h
59     messagefilter.h
60     messagemodel.h
61     networkmodel.h
62     selectionmodelsynchronizer.h
63     treemodel.h)
64
65 set(HEADERS
66     backlogsettings.h
67     backlogrequester.h
68     buffersettings.h
69     clientsettings.h
70     coreaccount.h
71    )
72
73 qt4_wrap_cpp(MOC ${MOC_HDRS})
74
75 include_directories(${CMAKE_SOURCE_DIR}/src/common)
76
77 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
78 add_dependencies(mod_client mod_common)