PDA

View Full Version : Search files with qmake



themean
3rd January 2013, 14:33
Hello,
In cmake i have macro that search recursively for files (using file(GLOB_RECURSE)) and sort files in types source,headers and others.
I wan to move my project to qmake. but can't find way to search for files in file system with qmake.
The only think that i found is


files = $$system("find -name ' *.*' ")


But i'm no sure that code is multi-platform (100% that not).
My question is:
If no regular way to get file names with qmake, is it possible to use python script (with system command) and get result from him.
How i can get files from python script if this is possible.