Skip to content
Snippets Groups Projects
Commit f7afe3ee authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Made the C++ front-end more Creator-friendly.

parent c2a40ce9
No related branches found
No related tags found
No related merge requests found
DEFINES += HAVE_QT CPLUSPLUS_WITH_NAMESPACE CPLUSPLUS_BUILD_LIB DEFINES += CPLUSPLUS_BUILD_LIB
INCLUDEPATH += $$PWD INCLUDEPATH += $$PWD
include(../../shared/cplusplus/cplusplus.pri) include(../../shared/cplusplus/cplusplus.pri)
......
INCLUDEPATH += $$PWD/../../shared/cplusplus INCLUDEPATH += $$PWD/../../shared/cplusplus
DEFINES += HAVE_QT CPLUSPLUS_WITH_NAMESPACE
LIBS *= -l$$qtLibraryTarget(CPlusPlus) LIBS *= -l$$qtLibraryTarget(CPlusPlus)
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#ifndef CPLUSPLUS_CPLUSPLUSFORWARDDECLARATIONS_H #ifndef CPLUSPLUS_CPLUSPLUSFORWARDDECLARATIONS_H
#define CPLUSPLUS_CPLUSPLUSFORWARDDECLARATIONS_H #define CPLUSPLUS_CPLUSPLUSFORWARDDECLARATIONS_H
#ifdef HAVE_QT #ifndef CPLUSPLUS_WITH_NO_QT
# include <QtCore/qglobal.h> # include <QtCore/qglobal.h>
# define CPLUSPLUS_BEGIN_HEADER # define CPLUSPLUS_BEGIN_HEADER
# define CPLUSPLUS_END_HEADER # define CPLUSPLUS_END_HEADER
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
# else # else
# define CPLUSPLUS_EXPORT Q_DECL_IMPORT # define CPLUSPLUS_EXPORT Q_DECL_IMPORT
# endif # endif
# define CPLUSPLUS_WITH_NAMESPACE
#else #else
# define CPLUSPLUS_BEGIN_HEADER # define CPLUSPLUS_BEGIN_HEADER
# define CPLUSPLUS_END_HEADER # define CPLUSPLUS_END_HEADER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment