Re: [CMake] Set variable value based on generated files

2010-06-01 Thread Michael Hertling
On 06/01/2010 09:57 PM, Michael Wild wrote: > > On 1. Jun, 2010, at 17:02 , Hariharan wrote: > >> I do use ADD_CUSTOM_COMMAND to generate the files, but the actual generation >> is done by a different Perl script. In some cases, there is no direct >> correlation between the name of the source fil

Re: [CMake] Set variable value based on generated files

2010-06-01 Thread Michael Wild
On 1. Jun, 2010, at 17:02 , Hariharan wrote: > I do use ADD_CUSTOM_COMMAND to generate the files, but the actual generation > is done by a different Perl script. In some cases, there is no direct > correlation between the name of the source file and the name of the > destination file; and the num

Re: [CMake] Set variable value based on generated files

2010-06-01 Thread Michael Wild
On 1. Jun, 2010, at 16:23 , Hariharan wrote: > First off, I apologize if this is a very newbie-level question. > I need to set the value of a variable based on based on generated files, > using the "file" command. Something like: > file(GLOB varFoo "*.cpp") > > Here the cpp files are generated,

[CMake] Set variable value based on generated files

2010-06-01 Thread Hariharan
First off, I apologize if this is a very newbie-level question. I need to set the value of a variable based on based on generated files, using the "file" command. Something like: file(GLOB varFoo "*.cpp") Here the cpp files are generated, so the value of varFoo comes up as empty when the build run