selectionmodelsynchronizer.cpp
treemodel.cpp)
-set(HEADERS
+set(MOC_HDRS
buffer.h
buffermodel.h
client.h
selectionmodelsynchronizer.h
treemodel.h)
-qt4_wrap_cpp(MOC ${HEADERS})
+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})
+add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
add_dependencies(mod_client mod_common)
ircuser.cpp
ircchannel.cpp)
-set(HEADERS
+set(MOC_HDRS
backlogmanager.h
buffersyncer.h
bufferviewconfig.h
signalproxy.h
syncableobject.h)
-qt4_wrap_cpp(MOC ${HEADERS})
+set(HEADERS ${MOC_HDRS}
+ bufferinfo.h
+ global.h
+ message.h
+ settings.h
+ types.h
+ util.h)
+
+qt4_wrap_cpp(MOC ${MOC_HDRS})
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}) # for version.inc and version.gen
add_definitions(-DHAVE_VERSION_GEN) # we ensure that by deps in the main CMakeLists.txt
storage.cpp
userinputhandler.cpp)
-set(HEADERS
+set(MOC_HDRS
abstractsqlstorage.h
basichandler.h
core.h
sessionthread.h
userinputhandler.h)
+set(HEADERS
+ coresettings.h
+ coreusersettings.h)
+
# QT_DEFINITIONS actually does not work, stuff gets included always.
# Funny enough that does not seem to be harmful, but we should still find a way to figure out
# if we have openssl in Qt...
if(OPENSSL_FOUND AND NOT ${QT_DEFINITIONS} MATCHES "-DQT_NO_OPENSSL")
set(SOURCES ${SOURCES} sslserver.cpp)
- set(HEADERS ${HEADERS} sslserver.h)
+ set(MOC_HDRS ${MOC_HDRS} sslserver.h)
endif(OPENSSL_FOUND AND NOT ${QT_DEFINITIONS} MATCHES "-DQT_NO_OPENSSL")
-QT4_WRAP_CPP(MOC ${HEADERS})
+QT4_WRAP_CPP(MOC ${MOC_HDRS})
include_directories(${CMAKE_SOURCE_DIR}/src/common)
-add_library(mod_core STATIC ${SOURCES} ${MOC})
+add_library(mod_core STATIC ${SOURCES} ${MOC} ${HEADERS})
add_dependencies(mod_core mod_common)
topicwidget.cpp
verticaldock.cpp)
-set(HEADERS
+set(MOC_HDRS
aboutdlg.h
bufferwidget.h
coreconfigwizard.h
coreconnectdlg.h
- configwizard.h
debugconsole.h
inputwidget.h
jumpkeyhandler.h
topicwidget.h
verticaldock.h)
+set(HEADERS
+ qtuisettings.h
+ qtuistyle.h)
+
if(SPUTDEV)
set(SOURCES ${SOURCES} chatitem.cpp chatline.cpp chatlinemodelitem.cpp
chatlinemodel.cpp chatscene.cpp chatview.cpp)
- set(HEADERS ${HEADERS} chatlinemodel.h chatscene.h chatview.h)
+ set(MOC_HDRS ${MOC_HDRS} chatlinemodel.h chatscene.h chatview.h)
+ set(HEADERS ${HEADERS} chatitem.h chatline.h chatlinemodelitem.h)
else(SPUTDEV)
set(SOURCES ${SOURCES} chatline-old.cpp chatwidget.cpp)
- set(HEADERS ${HEADERS} chatline-old.h chatwidget.h)
+ set(MOC_HDRS ${MOC_HDRS} chatline-old.h chatwidget.h)
endif(SPUTDEV)
set(FORMS
endforeach(FRM ${SP_FORMS})
-qt4_wrap_cpp(MOC ${HEADERS} ${SPHDR})
+qt4_wrap_cpp(MOC ${MOC_HDRS} ${SPHDR})
qt4_wrap_ui(UI ${FORMPATH} ${SPFRM})
include_directories(${CMAKE_SOURCE_DIR}/src/common
${CMAKE_SOURCE_DIR}/src/uisupport
${CMAKE_CURRENT_BINARY_DIR})
-add_library(mod_qtui STATIC ${SOURCES} ${SPSRC} ${MOC} ${UI})
+add_library(mod_qtui STATIC ${SOURCES} ${SPSRC} ${MOC} ${UI} ${HEADERS})
add_dependencies(mod_qtui mod_common mod_client mod_uisupport)
uisettings.cpp
uistylesettings.cpp)
-set(HEADERS
+set(MOC_HDRS
abstractbuffercontainer.h
abstractitemview.h
bufferview.h
settingspage.h
tabcompleter.h)
+set(HEADERS
+ uisettings.h
+ uistylesettings.h)
+
if(SPUTDEV)
set(SOURCES ${SOURCES} uistyle.cpp)
- set(HEADERS ${HEADERS} )
+ set(HEADERS ${HEADERS} uistyle.h)
else(SPUTDEV)
set(SOURCES ${SOURCES} old-uistyle.cpp)
- set(HEADERS ${HEADERS} )
+ set(HEADERS ${HEADERS} old-uistyle.h)
endif(SPUTDEV)
-qt4_wrap_cpp(MOC ${HEADERS})
+qt4_wrap_cpp(MOC ${MOC_HDRS})
include_directories(${CMAKE_SOURCE_DIR}/src/common
${CMAKE_SOURCE_DIR}/src/client)
-add_library(mod_uisupport STATIC ${SOURCES} ${MOC})
+add_library(mod_uisupport STATIC ${SOURCES} ${MOC} ${HEADERS})
add_dependencies(mod_uisupport mod_common mod_client)