Script from QMAKE_SUBSTITUTES with execute permissions

  • Hi,
    I'm using QMAKE_SUBSTITUTES to create script with paths to dependent libraries.
    Script is created, but after substitution it's permissions are 644.
    How can I change them to ie. 0755?
    Can I do it during install phase?

    PS: From qt src I see that QMAKE_SUBSTITUTES simply open and write to file.
    I found this a viable solution

    unix: system("chmod a+x $$shadowed($$PWD)/")

Log in to reply