- treemodel.cpp)
-
-set(MOC_HDRS
- buffer.h
- buffermodel.h
- client.h
- clientbacklogmanager.h
- clientsyncer.h
- networkmodel.h
- mappedselectionmodel.h
- quasselui.h
- selectionmodelsynchronizer.h
- treemodel.h)
-
-set(HEADERS
- buffersettings.h
- clientsettings.h)
-
-if(SPUTDEV)
- set(SOURCES ${SOURCES} messagefilter.cpp messagemodel.cpp)
- set(MOC_HDRS ${MOC_HDRS} messagefilter.h messagemodel.h)
-endif(SPUTDEV)
-
-qt4_wrap_cpp(MOC ${MOC_HDRS})
-
-include_directories(${CMAKE_SOURCE_DIR}/src/common)
-
-add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
-add_dependencies(mod_client mod_common)
+ treemodel.cpp
+
+ # needed for automoc
+ abstractui.h
+ clientcoreinfo.h
+)
+
+if (KDE4_FOUND)
+ include_directories(${KDE4_INCLUDES})
+ add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS})
+endif()
+
+if (USE_QT5)
+ list(APPEND qt_modules Widgets)
+endif()