<font size="2"><font face="arial,helvetica,sans-serif">Hi Eric,<br clear="all"></font></font><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span></span><span></span><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Just to clarify, INSTALL command are present in the sibling source directories&#39; CMakeLists.txt and not in the main CMakeLists.txt. Would this change the behavior of CPack (which is present only in the main CMakeLists.txt) ?</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div>Akshay<br>
<br><br><div class="gmail_quote">On Mon, Sep 12, 2011 at 12:18 PM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">2011/9/12 Akshay &lt;<a href="mailto:akshay.ranjan@gmail.com">akshay.ranjan@gmail.com</a>&gt;:<br>
</div>&gt; Hi Eric,<br>
<br>
Hi,<br>
<br>
Please do not drop the ML address.<br>
<div class="im"><br>
&gt; &#39;make install&#39; puts the targets in the directories that I have set in the<br>
&gt; main CMakeLists.txt.<br>
&gt;I am using CMake 2.8.0 on Ubuntu x64 (Linux valhala<br>
&gt; 2.6.38-10-generic #46~lucid1-Ubuntu SMP Wed Jul 6 18:41:04 UTC 2011 x86_64<br>
&gt; GNU/Linux).<br>
<br>
</div>If &quot;make install&quot; is working the way you want there is no reason CPack wouldn&#39;t<br>
unless you use absolute install path in your INSTALL command.<br>
<div class="im"><br>
&gt; Yes, main CMakeLists.txt is in a sibling directory. Yes, I goto<br>
&gt; the directory of main CMakeLists.txt and do &#39;cmake CMakeLists.txt&#39; followed<br>
&gt; by &#39;make&#39;. I have trying all options with the actual source tree.<br>
<br>
</div>What do you mean by &quot;all options&quot;?<br>
<div class="im"><br>
&gt; However<br>
&gt; before starting, I used a single level dummy project where things worked<br>
&gt; fine. I have used INCLUDE_SUBDIRECTORY() for all the source directories with<br>
&gt; relative paths.<br>
<br>
</div>INCLUDE_SUBDIRECTORY is not a CMake command you must be using<br>
ADD_SUBDIRECTORY.<br>
<br>
Could you send us your main CMakeLists.txt and an example of CMakeLists.txt<br>
you use in one subdir.<br>
<br>
Or better build self-contained dummy project which exhibit the issue.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Erk<br>
Membre de l&#39;April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</div></div></blockquote></div><br></div>