(Using Cmake 2.8.4)<br><br><div class="gmail_quote">On Sat, Jun 25, 2011 at 5:39 PM, Gabriel Petrovay <span dir="ltr"><<a href="mailto:gabipetrovay@gmail.com">gabipetrovay@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>1. What is the rule file?</div><div>2. What is the logic by which this file is generated?</div><div><br></div><div>I have a list of src files that need to be generated, each by an ADD_CUSTOM_COMMAND</div>
<div><br></div><div>in a FOREACH loop:</div><div><br></div><div>FOREACH(SRC ${SRC_LIST})</div><div><br></div><div>// no code here</div><div><br></div><div>ADD_CUSTOM_COMMAND(...)</div><div><br></div><div><div>// no code here</div>
</div><div><br></div><div><div>ENDFOREACH(SRC)</div><div><br></div><div><br></div>And all BUT the first generated SRC files get a SRC.rule file in the same build directory? Why this?</div><div><br></div><div>Moreover, if I look in the vcxproj file generated I see that the <CustomBuild> is slightly different for the first SRC in the list.</div>
<div><br></div><div>The first <CustomBuild> elements (for the 1st item in SRC_LIST) has as "Include" attribute the relative path (from the current build dir) to the MAIN_DEPENDENCY.</div><div>The rest <CustomBuild> elements (for the rest items in SRC_LIST) have as "Include" attribute the relative path (from the current build dir) to the SRC.rule file.</div>
<div><br></div><div>Why is this?</div><div><br></div><font color="#888888"><div><br></div><div><br></div><div>-- <br>MSc Gabriel Petrovay<br>Mobile: <a href="tel:%2B41%280%29787978034" value="+41787978034" target="_blank">+41(0)787978034</a><br>
<a href="http://www.28msec.com" target="_blank">www.28msec.com</a><br>
</div>
</font></blockquote></div><br><br clear="all"><br>-- <br>MSc Gabriel Petrovay<br>Mobile: +41(0)787978034<br><a href="http://www.28msec.com" target="_blank">www.28msec.com</a><br>