Fixed MSVS build.

print
Josef Rokos 9 years ago
parent 69c6068c0d
commit bc77f671ae

@ -81,7 +81,8 @@ HEADERS += core.h\
samestringvalidator.h \ samestringvalidator.h \
savefilterdialog.h \ savefilterdialog.h \
filterdialog.h \ filterdialog.h \
itablemodel.h itablemodel.h \
data/core_global.h
unix { unix {
target.path = /usr/lib target.path = /usr/lib

@ -0,0 +1,12 @@
#ifndef CORE_GLOBAL_H
#define CORE_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(CORE_LIBRARY)
# define CORESHARED_EXPORT Q_DECL_EXPORT
#else
# define CORESHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // CORE_GLOBAL_H

@ -2,6 +2,7 @@
#define PERMISSION_H #define PERMISSION_H
#include "core-data.h" #include "core-data.h"
#include "core_global.h"
#include <QObject> #include <QObject>
#include <QSharedPointer> #include <QSharedPointer>
@ -12,7 +13,7 @@
#include <odb/qt/list.hxx> #include <odb/qt/list.hxx>
#pragma db object #pragma db object
class Permission : public QObject class CORESHARED_EXPORT Permission : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString pluginId READ pluginId WRITE setPluginId) Q_PROPERTY(QString pluginId READ pluginId WRITE setPluginId)

@ -2,6 +2,7 @@
#define ROLE_H #define ROLE_H
#include "core-data.h" #include "core-data.h"
#include "core_global.h"
#include <QObject> #include <QObject>
#include <QSharedPointer> #include <QSharedPointer>
@ -12,7 +13,7 @@
#include <odb/qt/list.hxx> #include <odb/qt/list.hxx>
#pragma db object #pragma db object
class Role : public QObject class CORESHARED_EXPORT Role : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName) Q_PROPERTY(QString name READ name WRITE setName)

@ -2,6 +2,7 @@
#define USER_H #define USER_H
#include "core-data.h" #include "core-data.h"
#include "core_global.h"
#include <QObject> #include <QObject>
#include <QString> #include <QString>
@ -12,7 +13,7 @@
#include <odb/qt/list.hxx> #include <odb/qt/list.hxx>
#pragma db object #pragma db object
class User : public QObject class CORESHARED_EXPORT User : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString login READ login WRITE setLogin) Q_PROPERTY(QString login READ login WRITE setLogin)

Loading…
Cancel
Save