Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
On Mon, Apr 25, 2011 at 11:42 AM, Eric Noulard wrote: > 2011/4/25 James Bigler : > > If I have a custom command: > > > > add_custom_command(OUTPUT myfile.out) > > > > Then I add that file to the target: > > > > add_executable(mytarget main.cpp myfile.out) > > > > If I do a 'make help' I get rules

Re: [CMake] makefile helper targets for generated source files.

2011-04-25 Thread Eric Noulard
2011/4/25 James Bigler : > If I have a custom command: > > add_custom_command(OUTPUT myfile.out) > > Then I add that file to the target: > > add_executable(mytarget main.cpp myfile.out) > > If I do a 'make help' I get rules for main.o, but none for myfile.out.  Is > there something I can add to cre

[CMake] makefile helper targets for generated source files.

2011-04-25 Thread James Bigler
If I have a custom command: add_custom_command(OUTPUT myfile.out) Then I add that file to the target: add_executable(mytarget main.cpp myfile.out) If I do a 'make help' I get rules for main.o, but none for myfile.out. Is there something I can add to create a helper makefile target? Thanks, Ja