CMake install dynamic generated list of files
===

I have a cmake project that upon installing it will invoke a python script which will output for me a list of files that I must also install.

I use this output and pass it to FILE(INSTALL ${output}) but this command doesnt put the files at the right place.

How can I install a list of file that is a output of a command? (Note that the command depends on the built target)