Re: [CMake] delayed target

2012-02-23 Thread Andrea Crotti
On 02/23/2012 05:18 AM, Michael Hertling wrote: There is a possibility to dynamically reconfigure/rebuild the project without an intermediate manual step and in a way that you'll have one target per egg, but that approach is disadvantageous in other regards and possibly won't work with generator

Re: [CMake] delayed target

2012-02-22 Thread Michael Hertling
On 02/22/2012 11:55 PM, Andrea Crotti wrote: > On 02/22/2012 09:37 PM, Michael Hertling wrote: >> >> In order to define one target per egg, you'd need to know the eggs at >> configuration time since you cannot define targets at build time. So, >> gathering the eggs with a custom target/command will

Re: [CMake] delayed target

2012-02-22 Thread Andrea Crotti
On 02/22/2012 09:37 PM, Michael Hertling wrote: In order to define one target per egg, you'd need to know the eggs at configuration time since you cannot define targets at build time. So, gathering the eggs with a custom target/command will not work. As an alternative, you might gather the eggs

Re: [CMake] delayed target

2012-02-22 Thread Michael Hertling
On 02/22/2012 07:21 PM, Andrea Crotti wrote: > On 02/22/2012 05:14 PM, Michael Hertling wrote: >> On 02/22/2012 05:02 PM, Andrea Crotti wrote: >>> Again I'm having some troubles with the different building stages: >>> >>> I would like to have a target that simply unzips all the files contained >>>

Re: [CMake] delayed target

2012-02-22 Thread Andrea Crotti
On 02/22/2012 05:14 PM, Michael Hertling wrote: On 02/22/2012 05:02 PM, Andrea Crotti wrote: Again I'm having some troubles with the different building stages: I would like to have a target that simply unzips all the files contained in a directory, which can be found with a simple globbing.

Re: [CMake] delayed target

2012-02-22 Thread Michael Hertling
On 02/22/2012 05:02 PM, Andrea Crotti wrote: > Again I'm having some troubles with the different building stages: > > I would like to have a target that simply unzips all the files contained > in a directory, > which can be found with a simple globbing. > > add_custom_target(unzip_all_eggs >

[CMake] delayed target

2012-02-22 Thread Andrea Crotti
Again I'm having some troubles with the different building stages: I would like to have a target that simply unzips all the files contained in a directory, which can be found with a simple globbing. add_custom_target(unzip_all_eggs file(GLOB eggs RELATIVE ${EGG_BUILD_DIRECTORY}/*egg) CO