On Mon, Apr 25, 2011 at 11:42 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2011/4/25 James Bigler <<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>>:<br>
<div><div></div><div class="h5">> If I have a custom command:<br>
><br>
> add_custom_command(OUTPUT myfile.out)<br>
><br>
> Then I add that file to the target:<br>
><br>
> add_executable(mytarget main.cpp myfile.out)<br>
><br>
> If I do a 'make help' I get rules for main.o, but none for myfile.out. Is<br>
> there something I can add to create a helper makefile target?<br>
<br>
</div></div>I think there is no "help" for custom command<br>
but there should be one for custom **target**.<br>
<br>
You could try to :<br>
add_custom_target(myfile-out DEPENDS myfile.out COMMENT "Your help string")<br>
<font color="#888888"><br>
<br>
--<br>
Erk<br>
Membre de l'April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</font></blockquote></div><br>Yeah, that's not going to work. I can't have a target for every single generated file in my build (10s to 100s). That would make the VS solution a nightmare.<br><br>James<br><br>