<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' 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"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></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 <<a href="mailto:akshay.ranjan@gmail.com">akshay.ranjan@gmail.com</a>>:<br>
</div>> Hi Eric,<br>
<br>
Hi,<br>
<br>
Please do not drop the ML address.<br>
<div class="im"><br>
> 'make install' puts the targets in the directories that I have set in the<br>
> main CMakeLists.txt.<br>
>I am using CMake 2.8.0 on Ubuntu x64 (Linux valhala<br>
> 2.6.38-10-generic #46~lucid1-Ubuntu SMP Wed Jul 6 18:41:04 UTC 2011 x86_64<br>
> GNU/Linux).<br>
<br>
</div>If "make install" is working the way you want there is no reason CPack wouldn't<br>
unless you use absolute install path in your INSTALL command.<br>
<div class="im"><br>
> Yes, main CMakeLists.txt is in a sibling directory. Yes, I goto<br>
> the directory of main CMakeLists.txt and do 'cmake CMakeLists.txt' followed<br>
> by 'make'. I have trying all options with the actual source tree.<br>
<br>
</div>What do you mean by "all options"?<br>
<div class="im"><br>
> However<br>
> before starting, I used a single level dummy project where things worked<br>
> fine. I have used INCLUDE_SUBDIRECTORY() for all the source directories with<br>
> 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'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>