[Qt-creator] Qt Creator predefined macro file
Orgad Shaneh
orgads at gmail.com
Wed May 24 19:49:00 CEST 2017
Try this:
PRECOMPILED_HEADER = your_header.h
CONFIG -= precompile_header # prevent actually passing it to the compiler
(it is configured by default on Windows)
בתאריך 24 במאי 2017 18:32, "Ádám Balázs" <broothy at gmail.com> כתב:
> Hi,
>
> Our project has a predefined macro file that is given to the compiler
> (GCC/Clang) with the -imacros flag. It contains the platform specific
> macros so it is a complicated and long file. Can I specify a predefined
> macro file in Qt Creator because without it the code completion fails? I
> know that I can specify my macros in the DEFINES section of the .pro file
> but we have them in a standalone file. It is not possible to move them into
> the .pro file because other colleagues use Eclipse. Adding -imacros in
> QMAKE_CXXFLAGS has no effect on code completion.
> In Eclipse you can set it on this screen: http://imgur.com/a/AVFMO
> Is there a similar setting in Qt Creator?
>
> Adam
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20170524/100d9834/attachment.html>
More information about the Qt-creator
mailing list