How to make Device to copy the directory with the configuration in the output Debug directory next to the binary?

Campiglio the project in the environment of the Device. Somewhere in the settings specified that a directory will be created Debug that Device will copy nekompitentnoe.

Wrote in CMakeLists.txt here this line:
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/utils.cfg ${CMAKE_CURRENT_BINARY_DIR}/config/utils.cfg COPYONLY)


began to throw the config directory with the file inside near the binary, but only in subdirectories of ~/.Device. As I understand it, it first in ~/.Device collects binary and then copy it from there, at the place indicated in the settings. Here are just config it with binary does not copy the Debug.

How to be?
July 8th 19 at 15:26

Find more questions by tags CMakeC++