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

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -