[CMake] Unknown names of output files - How to add the dependency?

Alexander Neundorf a.neundorf-work at gmx.net
Sat Sep 5 13:15:35 EDT 2009


On Thursday 03 September 2009, Swaroop Ramachandra wrote:
> Hi,
> I have a question regarding the ADD_CUSTOM_COMMAND. I have an input file
> which is generated on the fly. My ADD_CUSTOM_COMMAND executes a binary file
> which takes this input file. My output is a set of files whose names are
> based on the contents of my input file. Specifically, I generate ".c" files
> on execution of the binary and the names of the ".c" files generated is not
> known in advance.
>
> In the above case, how can I specify a set of output files since I do not
> know the names of these files before hand?

I think this is a problem.
Is there really no way you can calculate the names beforehand ?
Can you maybe generate an additional file, where you know the name and use 
that as dependency or something like that ?

Alex


More information about the CMake mailing list