Commit 020e129c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile with cmake unity support

parent bfee0649
Pipeline #44851 passed with stage
in 12 minutes and 49 seconds
......@@ -127,6 +127,7 @@ if (USE_UNITY_CMAKE_SUPPORT)
message(STATUS "CMAKE version is less than 3.16.0 . We can't use cmake unify build support")
else()
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT true)
add_definitions(-DCOMPILE_WITH_UNITY_CMAKE_SUPPORT)
endif()
endif()
add_subdirectory(src)
......
......@@ -10,7 +10,9 @@
#include <KCheckComboBox>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(DebugModel::Message)
#endif
using namespace KPIM;
......
......@@ -12,7 +12,9 @@
#include <QDir>
#include <QStandardItemModel>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(DebugModel::Message)
#endif
DebugModel::DebugModel(QObject *parent)
: QAbstractItemModel(parent)
......
......@@ -25,8 +25,9 @@
#include <KSharedConfig>
#include <KConfigGroup>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(LoggingModel::Message)
#endif
#define DBUS_PATH QStringLiteral("/logger")
#define DBUS_INTERFACE QStringLiteral("org.kde.akonadiconsole.logger")
......
......@@ -9,8 +9,9 @@
#include "akonadiconsole_debug.h"
#include <KCheckComboBox>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(LoggingModel::Message)
#endif
using namespace KPIM;
......
......@@ -12,7 +12,9 @@
#include <QTimer>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(Akonadi::NotificationSubscriber)
#endif
MonitorsModel::MonitorsModel(QObject *parent)
: QAbstractItemModel(parent)
......
......@@ -35,7 +35,9 @@
using KPIM::KCheckComboBox;
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(Akonadi::ChangeNotification)
#endif
NotificationMonitor::NotificationMonitor(QWidget *parent)
: QWidget(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment