Re: [Interest] qmake project file questions

2014-02-14 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=digia@qt-project.org > files =\ >foo.cpp \ >foo.h \ >bar.cpp \ >bar.h > > for(file, files) { >contains(file, '.*.h') { > message(header = $$file) > HEADERS *= $$file >} >contains(file, '.*.

Re: [Interest] qmake project file questions

2014-02-13 Thread Thiago Macieira
Em qui 13 fev 2014, às 23:10:22, Thomas Sevaldrud escreveu: > However, the problem is that all the files are added to both HEADERS and > SOURCES. It appears that the HEADERS and SOURCES assignments simply ignore > the contains()-check, even though they are placed inside the scopes of > these checks

[Interest] qmake project file questions

2014-02-13 Thread Thomas Sevaldrud
Hi, I have a question about scope tests in .pro files. The following .pro file behaves a bit differently than I expected: files =\ foo.cpp \ foo.h \ bar.cpp \ bar.h for(file, files) { contains(file, '.*.h') { message(header = $$file) HEADERS *= $$file }