# Tell CMake about or own stuff
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
+set(CMAKE_AUTOMOC ON)
+
include(CheckFunctionExists)
include(CheckIncludeFile)
if(WANT_MONO)
setup_qt_variables(Gui Network Script Sql ${CLIENT_QT_MODULES} ${CORE_QT_MODULES})
include_directories(${QUASSEL_QT_INCLUDES})
- if(NOT WITH_QT5)
- qt4_wrap_cpp(MOC qtui/monoapplication.h)
- endif(NOT WITH_QT5)
- add_executable(quassel WIN32 common/main.cpp qtui/monoapplication.cpp ${MOC} ${COMMON_DEPS} ${CLIENT_DEPS} ${CORE_DEPS})
+ add_executable(quassel WIN32 common/main.cpp qtui/monoapplication.cpp ${COMMON_DEPS} ${CLIENT_DEPS} ${CORE_DEPS})
add_dependencies(quassel po)
set_target_properties(quassel PROPERTIES
COMPILE_FLAGS "-DBUILD_MONO ${QUASSEL_QT_COMPILEFLAGS} ${CLIENT_COMPILE_FLAGS}"
set(SOURCES
abstractmessageprocessor.cpp
- abstractui.cpp
backlogrequester.cpp
buffermodel.cpp
buffersettings.cpp
clientbacklogmanager.cpp
clientbufferviewconfig.cpp
clientbufferviewmanager.cpp
- clientcoreinfo.cpp
clientidentity.cpp
clientignorelistmanager.cpp
clientirclisthelper.cpp
messagemodel.cpp
networkmodel.cpp
selectionmodelsynchronizer.cpp
- treemodel.cpp)
+ treemodel.cpp
-set(MOC_HDRS
- abstractmessageprocessor.h
+ # needed for automoc
abstractui.h
- buffermodel.h
- bufferviewoverlay.h
- client.h
- clientaliasmanager.h
- clientauthhandler.h
- clientbacklogmanager.h
- clientbufferviewconfig.h
- clientbufferviewmanager.h
clientcoreinfo.h
- clientidentity.h
- clientignorelistmanager.h
- clientirclisthelper.h
- clienttransfer.h
- clienttransfermanager.h
- clientuserinputhandler.h
- coreaccountmodel.h
- coreconnection.h
- execwrapper.h
- irclistmodel.h
- messagefilter.h
- messagemodel.h
- networkmodel.h
- selectionmodelsynchronizer.h
- treemodel.h)
-
-set(HEADERS
- backlogsettings.h
- backlogrequester.h
- buffersettings.h
- clientsettings.h
- coreaccount.h
- )
+)
include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
-if(NOT WITH_QT5)
- qt4_wrap_cpp(MOC ${MOC_HDRS})
-endif(NOT WITH_QT5)
-
-add_library(mod_client STATIC ${SOURCES} ${MOC} ${HEADERS})
+add_library(mod_client STATIC ${SOURCES})
add_dependencies(mod_client mod_common)
set_target_properties(mod_client PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2005-2014 by the Quassel Project *
- * devel@quassel-irc.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) version 3. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include "abstractui.h"
-
-// this file is needed to make automoc work
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2005-2014 by the Quassel Project *
- * devel@quassel-irc.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) version 3. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include "clientcoreinfo.h"
-
-// this file is needed to make automoc work
bufferviewmanager.cpp
cliparser.cpp
compressor.cpp
- coreinfo.cpp
ctcpevent.cpp
event.cpp
eventmanager.cpp
protocols/datastream/datastreampeer.cpp
protocols/legacy/legacypeer.cpp
-)
-set(MOC_HDRS
- aliasmanager.h
- authhandler.h
- backlogmanager.h
- basichandler.h
- buffersyncer.h
- bufferviewconfig.h
- bufferviewmanager.h
- compressor.h
+ # needed for automoc
coreinfo.h
- eventmanager.h
- identity.h
- ignorelistmanager.h
- internalpeer.h
- ircchannel.h
- irclisthelper.h
- ircuser.h
- network.h
- networkconfig.h
- peer.h
- remotepeer.h
- settings.h
- signalproxy.h
- syncableobject.h
- transfer.h
- transfermanager.h
-
- protocols/datastream/datastreampeer.h
- protocols/legacy/legacypeer.h
)
-set(HEADERS ${MOC_HDRS}
- abstractcliparser.h
- bufferinfo.h
- cliparser.h
- ctcpevent.h
- event.h
- ircevent.h
- messageevent.h
- networkevent.h
- logger.h
- message.h
- peerfactory.h
- protocol.h
- types.h
- util.h)
if (HAVE_QCA2)
set(SOURCES ${SOURCES} keyevent.cpp)
- set(HEADERS ${HEADERS} keyevent.h)
endif(HAVE_QCA2)
if(NOT HAVE_ZLIB)
if(APPLE)
set(SOURCES ${SOURCES} mac_utils.cpp)
- set(HEADERS ${HEADERS} mac_utils.h)
endif(APPLE)
if(CMAKE_HOST_WIN32)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QUASSEL_QT_INCLUDES}) # for version.inc and version.gen
-if(NOT WITH_QT5)
- qt4_wrap_cpp(MOC ${MOC_HDRS})
-endif(NOT WITH_QT5)
-
-set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen)
-
-add_library(mod_common STATIC ${SOURCES} ${HEADERS} ${MOC})
+add_library(mod_common STATIC ${SOURCES})
set_target_properties(mod_common PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
if(APPLE)
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2005-2014 by the Quassel Project *
- * devel@quassel-irc.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) version 3. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include "coreinfo.h"
-
-// this file is needed to make automoc work
postgresqlstorage.cpp
sessionthread.cpp
sqlitestorage.cpp
- storage.cpp)
+ storage.cpp
-set(MOC_HDRS
- abstractsqlstorage.h
- core.h
- corealiasmanager.h
- coreapplication.h
- coreauthhandler.h
- corebacklogmanager.h
- corebasichandler.h
- corebuffersyncer.h
- corebufferviewconfig.h
- corebufferviewmanager.h
- corecoreinfo.h
+ # needed for automoc
coreeventmanager.h
- coreidentity.h
- coreignorelistmanager.h
- coreircchannel.h
- coreirclisthelper.h
- coreircuser.h
- corenetwork.h
- corenetworkconfig.h
- coresession.h
- coresessioneventprocessor.h
- coretransfer.h
- coretransfermanager.h
- coreuserinputhandler.h
- ctcpparser.h
- eventstringifier.h
- ircparser.h
- netsplit.h
- oidentdconfiggenerator.h
- postgresqlstorage.h
- sqlitestorage.h
- storage.h
- sessionthread.h)
-
-set(HEADERS
- coresettings.h
- coreusersettings.h)
+)
if(HAVE_SSL)
set(SOURCES ${SOURCES} sslserver.cpp)
- set(MOC_HDRS ${MOC_HDRS} sslserver.h)
include_directories(${OPENSSL_INCLUDE_DIR})
endif(HAVE_SSL)
if(HAVE_QCA2)
set(SOURCES ${SOURCES} cipher.cpp)
- set(HEADERS ${HEADERS} cipher.h)
include_directories(${QCA2_INCLUDE_DIR})
endif(HAVE_QCA2)
include_directories(${CMAKE_SOURCE_DIR}/src/common ${QUASSEL_QT_INCLUDES})
-if(NOT WITH_QT5)
- qt4_wrap_cpp(MOC ${MOC_HDRS})
-endif(NOT WITH_QT5)
-
set(CORE_RCS ${CORE_RCS} core/sql.qrc PARENT_SCOPE)
-add_library(mod_core STATIC ${SOURCES} ${MOC} ${HEADERS})
+add_library(mod_core STATIC ${SOURCES})
add_dependencies(mod_core mod_common)
set_target_properties(mod_core PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
titlesetter.cpp
topicwidget.cpp
verticaldock.cpp
- webpreviewitem.cpp)
-
-set(MOC_HDRS
- aboutdlg.h
- awaylogfilter.h
- awaylogview.h
- bufferwidget.h
- channellistdlg.h
- chatitem.h
- chatlinemodel.h
- chatmonitorfilter.h
- chatmonitorview.h
- chatscene.h
- chatview.h
- chatviewsearchbar.h
- chatviewsearchcontroller.h
- columnhandleitem.h
- coreconfigwizard.h
- coreconnectdlg.h
- coreconnectionstatuswidget.h
- coreinfodlg.h
- debugbufferviewoverlay.h
- debugconsole.h
- debuglogwidget.h
- debugmessagemodelfilter.h
- inputwidget.h
- ircconnectionwizard.h
- legacysystemtray.h
- mainpage.h
- mainwin.h
- markerlineitem.h
- msgprocessorstatuswidget.h
- nicklistwidget.h
- qtui.h
- qtuiapplication.h
- qtuimessageprocessor.h
- qtuistyle.h
- receivefiledlg.h
- settingsdlg.h
- settingspagedlg.h
- simplenetworkeditor.h
- systemtray.h
- systraynotificationbackend.h
- taskbarnotificationbackend.h
- titlesetter.h
- topicwidget.h
- verticaldock.h)
-
-set(HEADERS
- chatline.h
- chatlinemodelitem.h
- chatviewsettings.h
- qtuisettings.h
- webpreviewitem.h)
+ webpreviewitem.cpp
+)
set(FORMS
aboutdlg.ui
if(HAVE_KDE)
set(SOURCES ${SOURCES} knotificationbackend.cpp)
- set(MOC_HDRS ${MOC_HDRS} knotificationbackend.h)
else(HAVE_KDE)
if(HAVE_SNORENOTIFY)
set(SOURCES ${SOURCES} snorenotificationbackend.cpp)
- set(MOC_HDRS ${MOC_HDRS} snorenotificationbackend.h)
set(FORMS ${FORMS} snorentificationconfigwidget.ui)
endif(HAVE_SNORENOTIFY)
if(HAVE_PHONON)
set(SOURCES ${SOURCES} phononnotificationbackend.cpp)
- set(MOC_HDRS ${MOC_HDRS} phononnotificationbackend.h)
set(FORMS ${FORMS} phononnotificationconfigwidget.ui)
include_directories(${PHONON_INCLUDES})
endif(HAVE_PHONON)
if(HAVE_DBUS)
set(SOURCES ${SOURCES} statusnotifieritem.cpp statusnotifieritemdbus.cpp dockmanagernotificationbackend.cpp)
- set(MOC_HDRS ${MOC_HDRS} statusnotifieritem.h statusnotifieritemdbus.h dockmanagernotificationbackend.h)
set(FORMS ${FORMS})
if(WITH_QT5)
qt5_add_dbus_interface(DBUS ../../interfaces/org.kde.StatusNotifierWatcher.xml statusnotifierwatcher)
if(HAVE_SSL)
set(SOURCES ${SOURCES} sslinfodlg.cpp)
- set(MOC_HDRS ${MOC_HDRS} sslinfodlg.h)
set(FORMS ${FORMS} sslinfodlg.ui)
endif(HAVE_SSL)
if(INDICATEQT_FOUND)
set(SOURCES ${SOURCES} indicatornotificationbackend.cpp)
- set(MOC_HDRS ${MOC_HDRS} indicatornotificationbackend.h)
set(FORMS ${FORMS} indicatornotificationconfigwidget.ui)
include_directories(${INDICATEQT_INCLUDE_DIRS})
endif(INDICATEQT_FOUND)
if(HAVE_NOTIFICATION_CENTER)
set(SOURCES ${SOURCES} osxnotificationbackend.mm)
- set(MOC_HDRS ${MOC_HDRS} osxnotificationbackend.h)
endif()
foreach(FORM ${FORMS})
include(settingspages/settingspages.cmake)
foreach(SP ${SETTINGSPAGES})
set(SPSRC ${SPSRC} settingspages/${SP}settingspage.cpp)
- set(SPHDR ${SPHDR} settingspages/${SP}settingspage.h)
set(SPFRM ${SPFRM} settingspages/${SP}settingspage.ui)
endforeach(SP ${SETTINGSPAGES})
foreach(SRC ${SP_SOURCES})
set(SPSRC ${SPSRC} settingspages/${SRC})
endforeach(SRC ${SP_SOURCES})
-foreach(HDR ${SP_HEADERS})
- set(SPHDR ${SPHDR} settingspages/${HDR})
-endforeach(HDR ${SP_HEADERS})
foreach(FRM ${SP_FORMS})
set(SPFRM ${SPFRM} settingspages/${FRM})
endforeach(FRM ${SP_FORMS})
if(WITH_QT5)
qt5_wrap_ui(UI ${FORMPATH} ${SPFRM})
else(WITH_QT5)
- qt4_wrap_cpp(MOC ${MOC_HDRS} ${SPHDR})
qt4_wrap_ui(UI ${FORMPATH} ${SPFRM})
endif(WITH_QT5)
-add_library(mod_qtui STATIC ${SOURCES} ${SPSRC} ${MOC} ${DBUS} ${UI} ${HEADERS})
+add_library(mod_qtui STATIC ${SOURCES} ${SPSRC} ${DBUS} ${UI})
add_dependencies(mod_qtui mod_common mod_client mod_uisupport)
set_target_properties(mod_qtui PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2005-2014 by the Quassel Project *
- * devel@quassel-irc.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) version 3. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include "previewbufferview.h"
-
-// this file is needed to make automoc work
# Putting $FOO in SETTINGSPAGES automatically includes
# $FOOsettingspage.cpp, $FOOsettingspage.h and $FOOsettingspage.ui
-set(SETTINGSPAGES aliases appearance backlog bufferview chatview connection coreconnection chatmonitor coreaccount
- highlight identities ignorelist inputwidget itemview networks topicwidget)
+set(SETTINGSPAGES
+ aliases
+ appearance
+ backlog
+ bufferview
+ chatmonitor
+ chatview
+ connection
+ coreconnection
+ coreaccount
+ highlight
+ identities
+ ignorelist
+ inputwidget
+ itemview
+ networks
+ topicwidget
+)
# Specify additional files (e.g. for subdialogs) here!
-set(SP_SOURCES aliasesmodel.cpp identityeditwidget.cpp ignorelistmodel.cpp notificationssettingspage.cpp previewbufferview.cpp)
-set(SP_HEADERS aliasesmodel.h identityeditwidget.h ignorelistmodel.h notificationssettingspage.h previewbufferview.h)
-set(SP_FORMS buffervieweditdlg.ui coreaccounteditdlg.ui createidentitydlg.ui identityeditwidget.ui ignorelisteditdlg.ui saveidentitiesdlg.ui
- networkadddlg.ui networkeditdlg.ui nickeditdlg.ui servereditdlg.ui)
+set(SP_SOURCES
+ aliasesmodel.cpp
+ identityeditwidget.cpp
+ ignorelistmodel.cpp
+ notificationssettingspage.cpp
+
+ # needed for automoc
+ previewbufferview.h
+)
+
+set(SP_FORMS
+ buffervieweditdlg.ui
+ coreaccounteditdlg.ui
+ createidentitydlg.ui
+ identityeditwidget.ui
+ ignorelisteditdlg.ui
+ networkadddlg.ui
+ networkeditdlg.ui
+ nickeditdlg.ui
+ saveidentitiesdlg.ui
+ servereditdlg.ui
+)
if(NOT HAVE_KDE)
set(SETTINGSPAGES ${SETTINGSPAGES} shortcuts)
set(SP_SOURCES ${SP_SOURCES} keysequencewidget.cpp shortcutsmodel.cpp)
- set(SP_HEADERS ${SP_HEADERS} keysequencewidget.h shortcutsmodel.h)
endif(NOT HAVE_KDE)
set(SOURCES
abstractbuffercontainer.cpp
abstractitemview.cpp
- abstractnotificationbackend.cpp
action.cpp
actioncollection.cpp
bufferhotlistfilter.cpp
toolbaractionprovider.cpp
uisettings.cpp
uistyle.cpp
- )
-set(MOC_HDRS
- abstractbuffercontainer.h
- abstractitemview.h
+ # needed for automoc
abstractnotificationbackend.h
- action.h
- actioncollection.h
- bufferhotlistfilter.h
- bufferview.h
- bufferviewfilter.h
- bufferviewoverlayfilter.h
- clearablelineedit.h
- clickablelabel.h
- colorbutton.h
- contextmenuactionprovider.h
- flatproxymodel.h
- fontselector.h
- graphicalui.h
- iconloader.h
- multilineedit.h
- networkmodelcontroller.h
- nickview.h
- nickviewfilter.h
- resizingstackedwidget.h
- settingspage.h
- styledlabel.h
- tabcompleter.h
- toolbaractionprovider.h
- uistyle.h
- )
-
-set(HEADERS
- clickable.h
- icon.h
- qssparser.h
- uisettings.h
- )
+)
if(HAVE_KDE)
set(SOURCES ${SOURCES} kcmdlinewrapper.cpp)
- set(HEADERS ${HEADERS} kcmdlinewrapper.h)
endif(HAVE_KDE)
include_directories(${CMAKE_SOURCE_DIR}/src/common
include_directories(${QCA2_INCLUDE_DIR})
endif(HAVE_QCA2)
-if(NOT WITH_QT5)
- qt4_wrap_cpp(MOC ${MOC_HDRS})
-endif(NOT WITH_QT5)
-
-add_library(mod_uisupport STATIC ${SOURCES} ${MOC} ${HEADERS})
+add_library(mod_uisupport STATIC ${SOURCES})
add_dependencies(mod_uisupport mod_common mod_client)
set_target_properties(mod_uisupport PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}")
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2005-2014 by the Quassel Project *
- * devel@quassel-irc.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) version 3. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-#include "abstractnotificationbackend.h"
-
-// this file is needed to make automoc work