Refactor the transfer stuff
[quassel.git] / src / client / CMakeLists.txt
1 # Builds the client module
2
3 # In Qt4, we still have some minor deps to QtUi: QItemSelectionModel, QSortFilterProxyModel
4 # Still in Qt5: QAbstractItemView in BufferModel
5
6 set(_modules )
7
8 if(WITH_QT5)
9   list(APPEND _modules Widgets)
10 endif(WITH_QT5)
11
12 if(HAVE_DBUS)
13   list(APPEND _modules DBus)
14 endif(HAVE_DBUS)
15
16 setup_qt_variables(Gui Network ${_modules})
17
18 set(SOURCES
19     abstractmessageprocessor.cpp
20     abstractui.cpp
21     backlogrequester.cpp
22     buffermodel.cpp
23     buffersettings.cpp
24     bufferviewoverlay.cpp
25     client.cpp
26     clientaliasmanager.cpp
27     clientauthhandler.cpp
28     clientbacklogmanager.cpp
29     clientbufferviewconfig.cpp
30     clientbufferviewmanager.cpp
31     clientcoreinfo.cpp
32     clientidentity.cpp
33     clientignorelistmanager.cpp
34     clientirclisthelper.cpp
35     clientsettings.cpp
36     clienttransfer.cpp
37     clienttransfermanager.cpp
38     clientuserinputhandler.cpp
39     coreaccount.cpp
40     coreaccountmodel.cpp
41     coreconnection.cpp
42     execwrapper.cpp
43     irclistmodel.cpp
44     messagefilter.cpp
45     messagemodel.cpp
46     networkmodel.cpp
47     selectionmodelsynchronizer.cpp
48     treemodel.cpp)
49
50 set(MOC_HDRS
51     abstractmessageprocessor.h
52     abstractui.h
53     buffermodel.h
54     bufferviewoverlay.h
55     client.h
56     clientaliasmanager.h
57     clientauthhandler.h
58     clientbacklogmanager.h
59     clientbufferviewconfig.h
60     clientbufferviewmanager.h
61     clientcoreinfo.h
62     clientidentity.h
63     clientignorelistmanager.h
64     clientirclisthelper.h
65     clienttransfer.h
66     clienttransfermanager.h
67     clientuserinputhandler.h
68     coreaccountmodel.h
69     coreconnection.h
70     execwrapper.h
71     irclistmodel.h
72     messagefilter.h
73     messagemodel.h
74     networkmodel.h
75     selectionmodelsynchronizer.h
76     treemodel.h)
77
78 set(HEADERS
79     backlogsettings.h
80     backlogrequester.h
81     buffersettings.h
82     clientsettings.h
83     coreaccount.h
84    )
85
86 include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
87
88 if(NOT WITH_QT5)
89   qt4_wrap_cpp(MOC ${MOC_HDRS})
90 endif(NOT WITH_QT5)
91
92 add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
93 add_dependencies(mod_client mod_common)
94
95 set_target_properties(mod_client PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")