PDA

View Full Version : QtCreator add a pri file without compiling it



bunjee
2nd May 2009, 19:48
Hey trolls,

I have the following line in my .pro file :


include(src/factories/factories.pri)

I want these files to be added to my QtCreator projet but prevent them from being compiled.

How can I do that ?

Thanks.
Benjamin Arnaud.

andy.fillebrown
3rd May 2009, 13:35
QtCreator has an OTHER_FILES variable you can use for displaying files in project tree without compiling them.

Alternatively, if you want files to be compiled but not visible in QtCreator, you can wrap the include statement in an eval statement since QtCreator does not parse eval statements like qmake does.