Qt World Summit: Register Today!

How to know Shadow build directory in pro file?

  • How to know or set the shadow build directory path in pro file?
    I have a execute binary and some libraries build in shadow build directory.
    And I want to deploy it using INSTALLS in the pro file.
    But I can't tell the build directory path.

    @target.path = /usr/local/bin

    lib.files += $$shadow_build_directory/lib/*
    lib.path += /usr/lib

    INSTALLS += target lib@


  • $$OUT_PWD is what you need I think.

Log in to reply