Hi Jameson, To specifically address the issue you described, I started to develop an (experimental) module extending ExternalProject and providing some convenience function.
Documentation is far from being perfect but looking at (1) the tests: https://github.com/commontk/Artichoke/tree/master/Tests (2) the "to be extended/improved" documentation: http://cmake-artichoke.readthedocs.org/en/latest/ (3) example of usage in 3DSlicer: https://github.com/Slicer/Slicer ... you should be able to get the idea. It basically provide to convenience function: make_as_superbuild ExternalProject_Include_Dependencies allowing to automatically generate the value to pass to either CMAKE_CACHE_ARGS (or CMAKE_ARGS if needed) Ultimately, if the module API stabilizes and turns out to be of general use, it could be integrate into CMake ... Hth Jc On Mon, Jun 2, 2014 at 9:00 PM, jmerkow <[email protected]> wrote: > I see, that makes a lot of sense. And in order to pass options from the > 'superbuild' build to the 'normal' build you make them options as command > line args in your ExternalProhect_Add command? i.e.: > > set( proj my_prog ) > ExternalProject_Add( ${proj} > DOWNLOAD_COMMAND "" > SOURCE_DIR "${${proj}_Source_Dir}" > BINARY_DIR "${${proj}_Binary_Dir}" > CMAKE_GENERATOR ${gen} > CMAKE_ARGS > -D${proj}_option1:BOOL=${proj}_option1 > -D${proj}_some_LIBRARY:FILEPATH=${proj}_some_LIBRARY > ... > INSTALL_DIR ${proj}/path/ > DEPENDSsd > ${proj_DEPENDS}) > > Is there an easier way to pass all the options to the 'normal' build? > > -Jameson > > > > -- > View this message in context: > http://cmake.3232098.n2.nabble.com/Question-regarding-External-Project-add-and-VTK-tp7587557p7587560.html > Sent from the CMake mailing list archive at Nabble.com. > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- +1 919 869 8849
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
