I have a script, runScript.sh, that I would like to have run (to setup some environment variables and such) BEFORE making the application.
Using advice from Running a program/script from QMake, in my .pro file, I have on the first line,
QMAKE_POST_LINK += ./runScript.sh
which will, on a make
, compile and link my application and THEN run the script.
I've seen examples of how to set the script up as a target in the .pro file,but I am not sure if I quite grasp the concept. Could someone explain it better or (even better) does anyone know how to do what I'm trying to do simpler (I was hoping for a "QMAKE_PRE_LINK" but that does not seem to exist lol)?
Using Qt-4.8.4 & qmake 2.03
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…