<br><br><div class="gmail_quote">2011/5/11 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="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wednesday 11 May 2011, Jean-Christophe Fillion-Robin wrote:<br>
> Hi Alexander,<br>
><br>
> Assuming the subproject are CMakeified:<br>
><br>
> 1) Set the INSTALL command of each External project to an empty string<br>
<br>
</div>...but the INSTALL_DIR to the final location I assume ?<br></blockquote><div>Since the INSTALL command won't be executed it doesn't really matter .. the default is fine.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Then the project will be built in build tree, but not installed anywhere at<br>
build-time, right ?<br></blockquote><div>Correct <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
> 2 ) In yout CPack file, you could use a syntax similar to the one<br>
> reported below:<br>
><br>
><br>
> if(EXISTS "${VTK_DIR}/CMakeCache.txt")<br>
> set(CPACK_INSTALL_CMAKE_PROJECTS<br>
> "${CPACK_INSTALL_CMAKE_PROJECTS};${VTK_DIR};VTK;RuntimeLibraries;/")<br>
> endif()<br>
><br>
> if(EXISTS "${ITK_DIR}/CMakeCache.txt")<br>
> set(CPACK_INSTALL_CMAKE_PROJECTS<br>
> "${CPACK_INSTALL_CMAKE_PROJECTS};${ITK_DIR};ITK;RuntimeLibraries;/")<br>
> endif()<br>
<br>
</div>Assuming that I create a package in the end using cpack, right ?<br>
So this will tell cpack to do a execute cmake_install.cmake in e.g. ${ITK_DIR}<br>
and put this into the package. What does actually the last parameter ("/") do<br>
?<br></blockquote><div><br>The option expect four values: Build directory, Project Name, Project Component, Directory in the package<br>Useful info could be found here: <a href="http://www.vtk.org/Wiki/CMake:CPackConfiguration">http://www.vtk.org/Wiki/CMake:CPackConfiguration</a><br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
And after that, I install that package e.g. as root, right ?<br></blockquote><div>Then, you could install the package either as your regular user or as root depending of the install dir.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'll give it a try.<br>
<br>
Alex<br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>