'Qt Creator custom build step : generic cross-platform way to copy files/directories

I need to add a custom build step which copies files.

This question has a Windows-specific answer to this problem, I need a cross-platform one.

I already tried using $(COPY_DIR) but it is not understood as the generic copy command as it is in Qmake like in the accepted answer to this question.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source