c - How to add global preinclude files to a QtCreator project? -
for unit test purposes, need add include file (e.g. header.h) qt creator project, preincluded every c-file. gcc supports via -include header.h in cflags.
in qt creator, haven't been able find solution this. putting include directive qmake_cflags has no effect.
i found many hints adding global include paths (that's not purpose), nothing global preinclude files.
qmake_cflags used in qmake.conf. if want have specific .pro, use qmake_cxxflags flag:
qmake_cxxflags += -include header.h
Comments
Post a Comment