Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Console
Commits
020e129c
Commit
020e129c
authored
Dec 21, 2020
by
Laurent Montel
😁
Browse files
Fix compile with cmake unity support
parent
bfee0649
Pipeline
#44851
passed with stage
in 12 minutes and 49 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
020e129c
...
...
@@ -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
)
...
...
src/debugfiltermodel.cpp
View file @
020e129c
...
...
@@ -10,7 +10,9 @@
#include <KCheckComboBox>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE
(
DebugModel
::
Message
)
#endif
using
namespace
KPIM
;
...
...
src/debugmodel.cpp
View file @
020e129c
...
...
@@ -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
)
...
...
src/logging.cpp
View file @
020e129c
...
...
@@ -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")
...
...
src/loggingfiltermodel.cpp
View file @
020e129c
...
...
@@ -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
;
...
...
src/monitorsmodel.cpp
View file @
020e129c
...
...
@@ -12,7 +12,9 @@
#include <QTimer>
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE
(
Akonadi
::
NotificationSubscriber
)
#endif
MonitorsModel
::
MonitorsModel
(
QObject
*
parent
)
:
QAbstractItemModel
(
parent
)
...
...
src/notificationmonitor.cpp
View file @
020e129c
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment