What you want can be done using INSTALLS if lib.dll is the target of your project. Call the install target "target", don't set its "files" variable, only the "path" variable. I think you could also set some flag (nocheck_exists or something like that) on the install target and qmake will assume the files passed in "files" are valid.