> -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, '.*.
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
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
}