I want to copy some qml to my build directory.
In .pro, I add:
copydata.commands = $(COPY_DIR) \"$$PWD/plugins\" \"$$DESTDIR/plugins\"
But when I build the project, the copydata is error.
The error message is :
xcopy /s /q /y /i "E:/myproject/src/plugins" "E:/myproject/bin/debug/plugins" Invalid number of parameters
But ,I copy the command to cmd ,it's all right.
Does anyone knows what the wrong is ?
I got it!
Thank you, macetw, you point the way.
The correct code should be:
copydata.commands = $(COPY_DIR) $$shell_path($$PWD/plugins) $$shell_path($$DESTDIR/plugins)
Windows might get confused by those forward slashes. Try backslashes in all cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With