Hello Alexander,<br><br>Thank you for your reply.<br><br>I've made
changes as you suggested. It works for now. But IMHO it is incorrect.
Only DLL root project "knows" all details of installation but not
sub-project.<br>
<br>What if I have several projects based on the same sub-projects? They have different installation path.<br><br>Regards.<br><br>Dima<br><br><div class="gmail_quote">2009/5/19 Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tuesday 19 May 2009, Dmytro Ovdiienko wrote:<br>
> Hi all,<br>
><br>
> I'm trying to write install instruction for my main project (DLL) that<br>
> consists from several projects (LIBs). This instruction should copy all<br>
> public headers from all dependent targets to the destination directory.<br>
><br>
> I expected to use following sample but it is erroneous:<br>
><br>
> install (<br>
> TARGETS<br>
> utils<br>
> system<br>
> types<br>
> PUBLIC_HEADER DESTINATION ${${PROJECT_NAME}_BINARY_DIR}/install/headers<br>
> )<br>
<br>
</div>I think you have to write the install() command for a target in the directory<br>
where the target is created. I think installing them from a different<br>
CMakeLists.txt is not supported.<br>
<br>
<br>
Alex<br>
</blockquote></div><br>