<div dir="ltr"><div><div>Hi Jameson, <br><br></div>To specifically address the issue you described, I started to develop an (experimental) module extending ExternalProject and providing some convenience function. <br><br></div>
<div>Documentation is far from being perfect but looking at <br><br> (1) the tests: <a href="https://github.com/commontk/Artichoke/tree/master/Tests">https://github.com/commontk/Artichoke/tree/master/Tests</a><br></div>
<div>
(2) the "to be extended/improved" documentation: <a href="http://cmake-artichoke.readthedocs.org/en/latest/">http://cmake-artichoke.readthedocs.org/en/latest/</a><br></div><div> (3) example of usage in 3DSlicer: <a href="https://github.com/Slicer/Slicer">https://github.com/Slicer/Slicer</a><br>
<br></div><div>... you should be able to get the idea. <br><br><br></div><div>It basically provide to convenience function:<br><br></div><div> make_as_superbuild<br><br> ExternalProject_Include_Dependencies<br><br></div>
<div>allowing to<br><br> automatically generate the value to pass to either CMAKE_CACHE_ARGS (or CMAKE_ARGS if needed)<br><br></div><div><br><br></div><div>Ultimately, if the module API stabilizes and turns out to be of general use, it could be integrate into CMake ... <br>
</div><div><br></div><div>Hth<br></div><div>Jc<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 9:00 PM, jmerkow <span dir="ltr"><<a href="mailto:jmerkow@gmail.com" target="_blank">jmerkow@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I see, that makes a lot of sense. And in order to pass options from the<br>
'superbuild' build to the 'normal' build you make them options as command<br>
line args in your ExternalProhect_Add command? i.e.:<br>
<br>
set( proj my_prog )<br>
ExternalProject_Add( ${proj}<br>
DOWNLOAD_COMMAND ""<br>
SOURCE_DIR "${${proj}_Source_Dir}"<br>
BINARY_DIR "${${proj}_Binary_Dir}"<br>
CMAKE_GENERATOR ${gen}<br>
CMAKE_ARGS<br>
-D${proj}_option1:BOOL=${proj}_option1<br>
-D${proj}_some_LIBRARY:FILEPATH=${proj}_some_LIBRARY<br>
...<br>
INSTALL_DIR ${proj}/path/<br>
DEPENDSsd<br>
${proj_DEPENDS})<br>
<br>
Is there an easier way to pass all the options to the 'normal' build?<br>
<br>
-Jameson<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://cmake.3232098.n2.nabble.com/Question-regarding-External-Project-add-and-VTK-tp7587557p7587560.html" target="_blank">http://cmake.3232098.n2.nabble.com/Question-regarding-External-Project-add-and-VTK-tp7587557p7587560.html</a><br>
<div class="im HOEnZb">Sent from the CMake mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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>
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"><br>-- <br>+1 919 869 8849<br>
</div>