Fixed MSVS build.

print
Josef Rokos 9 years ago
parent 69c6068c0d
commit bc77f671ae

@ -81,7 +81,8 @@ HEADERS += core.h\
samestringvalidator.h \
savefilterdialog.h \
filterdialog.h \
itablemodel.h
itablemodel.h \
data/core_global.h
unix {
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
#include "core-data.h"
#include "core_global.h"
#include <QObject>
#include <QSharedPointer>
@ -12,7 +13,7 @@
#include <odb/qt/list.hxx>
#pragma db object
class Permission : public QObject
class CORESHARED_EXPORT Permission : public QObject
{
Q_OBJECT
Q_PROPERTY(QString pluginId READ pluginId WRITE setPluginId)

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

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

Loading…
Cancel
Save