Enable automoc
[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     backlogrequester.cpp
21     buffermodel.cpp
22     buffersettings.cpp
23     bufferviewoverlay.cpp
24     client.cpp
25     clientaliasmanager.cpp
26     clientauthhandler.cpp
27     clientbacklogmanager.cpp
28     clientbufferviewconfig.cpp
29     clientbufferviewmanager.cpp
30     clientidentity.cpp
31     clientignorelistmanager.cpp
32     clientirclisthelper.cpp
33     clientsettings.cpp
34     clienttransfer.cpp
35     clienttransfermanager.cpp
36     clientuserinputhandler.cpp
37     coreaccount.cpp
38     coreaccountmodel.cpp
39     coreconnection.cpp
40     execwrapper.cpp
41     irclistmodel.cpp
42     messagefilter.cpp
43     messagemodel.cpp
44     networkmodel.cpp
45     selectionmodelsynchronizer.cpp
46     treemodel.cpp
47
48     # needed for automoc
49     abstractui.h
50     clientcoreinfo.h
51 )
52
53 include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
54
55 add_library(mod_client STATIC ${SOURCES})
56 add_dependencies(mod_client mod_common)
57
58 set_target_properties(mod_client PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")