I'm using a series of Qt Project files to build libraries on Windows, Mac and Linux platforms. Per platform I'd like to copy all the built library files into one location after they are built.

Using QMAKE_POST_LINK in the Project file seems to be the best way to do this. To keep things simple I wanted to use the same command on all platforms. I installed Cygwin on my Windows computer and tried to use 'cp' but I can't get it to work. I've tried it several ways.

If I try
Qt Code:
  1. QMAKE_POST_LINK=cp /Projects/TestFile.txt /Projects/OSPF/TestFile.txt
To copy to clipboard, switch view to plain text mode 
I get
cp: cannot stat `/Projects/TestFile.txt': No such file or directory


if I try (add '\' in middle):
Qt Code:
  1. QMAKE_POST_LINK=cp /Projects/TestFile.txt\ /Projects/OSPF/TestFile.txt
To copy to clipboard, switch view to plain text mode 
I get
cp: missing destination file operand after `/Projects/TestFile.txt /Projects/OSPF/TestFile.txt'

Does anyone know what I might be doing wrong?