0

I have a project and I am using following lines to move an xml file to my executable directory.

xmls_to_move.path = $${OUTDIR}
xmls_to_move.files = somefile.xml
INSTALLS += xmls_to_move

I can check that qmake sees the file, CTRL and clicking it navigates to it. But for some reason, it does not move the file after build. What might be the reason?

meguli
  • 1,426
  • 1
  • 18
  • 35

1 Answers1

2

You need to run INSTALL as make target: make install. If you want it to be run automatically you can add it as custom build step, as described here.

Community
  • 1
  • 1
Max Go
  • 2,092
  • 1
  • 16
  • 26