I need to dynamically add folders into $SUBDIRS , just scan for some folders , and:
for file in plugin_dir
if folder name ~ "^plugin-[A-Z]+$"
SUBDIRS += $name
fi
But how can i implement this in a .pro file ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We do this by using qmake’s system command.
Where we need non-trivial commands to be run, we write a script (we use Python, but any language would do) that we pass info into via command-line options, and that writes out the desired values we want out into a qmake variable.