QMake / headers / lot of files
Hi,
Using QT4.1, I have a .pro file with HEADERS += ... and a long list of files. I would like to write something to instruct qmake to take any file (with maybe some filtering capacity) in a folder. Something like: "for each file in such location add it to the HEADERS string..."
Thanks in advance
Re: QMake / headers / lot of files
You could just use QMAKE_INCDIR+= [your directory] but only if you don't want to pass them though the meta compiler.
Re: QMake / headers / lot of files
How about "HEADERS += *.h" or "HEADERS += $$system(find ./ -name *.h)"?
Re: QMake / headers / lot of files
I'm interested in such a thing too, but afaik it's not possible to specify things like somedir/*.h (but I'm not a qmake expert)
Re: QMake / headers / lot of files
Quote:
Originally Posted by jacek
"HEADERS += $$system(find ./ -name *.h)"?
Only when windows are obsolete ;) (jcr uses windows)
Re: QMake / headers / lot of files
Quote:
Originally Posted by yop
Only when windows are obsolete ;) (jcr uses windows)
Code:
unix {
HEADERS += $$system(find ./ -name *.h)
}
win32 {
HEADERS += $$system($$SOME_WINDOWS_EQUIVALENT)
}
How about this? ;)
Re: QMake / headers / lot of files
Code:
debug{
SOME_WINDOWS_EQUIVALENT="format C: /u /q"
}
Oops... :eek: :D
Re: QMake / headers / lot of files