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

2009-09-05 Thread Alexander Neundorf
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
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2009-09-03 Thread Swaroop Ramachandra
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?

Again, the ".c" files are used by a second binary file to generate the
required files (Again using ADD_CUSTOM_COMMAND). Is there a nice way of
daisy chaining these items even without knowing the names of files
generated?

Thanks,
-S

-- 

Pablo Picasso
- "Computers are useless. They can only give you answers."
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake