<div dir="ltr">Hi Alex, <div><br></div><div style>You could probably pass the CMAKE_INSTALL_PREFIX option.</div><div style>For example: <a href="https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_DCMTK.cmake#L44">https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_DCMTK.cmake#L44</a></div>

<div style><br></div><div style>Hth</div><div style>Jc</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 1:10 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</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">On Monday 04 February 2013, David Cole wrote:<br>
&gt; The OpenChemistry project ( <a href="https://github.com/OpenChemistry/openchemistry" target="_blank">https://github.com/OpenChemistry/openchemistry</a><br>
&gt; ) is a very good example of a SuperBuild project that builds all of its<br>
&gt; external dependencies via ExternalProject, and then all of its git<br>
&gt; submodules (&quot;internal dependencies&quot; perhaps ?) also via ExternalProject.<br>
&gt;<br>
&gt; They use CMAKE_PREFIX_PATH both as a place to install all of the built<br>
&gt; components, and as a place for find_package to find stuff that was built<br>
&gt; by a previous ExternalProject_Add call.<br>
&gt;<br>
&gt; Study how they do stuff in their CMakeLists files and then get back to us<br>
&gt; here with more questions.<br>
<br>
</div>one thing I had trouble with is related to the install step.<br>
<br>
With externalProject the install step happens at build time.<br>
If shared libraries are involved, the install destination should be the<br>
correct and final install destination, so that the RPATH of using projects<br>
will point to the correct location.<br>
This means that at build time I need to have the permissions to write to the<br>
final install destination (e.g. /opt/), i.e. typically root.<br>
<br>
Is this correct or am I missing something ?<br>
<br>
Alex<br>
<div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div>