<div dir="ltr">If you run EXECUTE_PROCESS to do a checkout before ADD_SUBDIRECTORY it should work fine. Do it conditionally though, or else you&#39;ll be doing checkouts constantly. You probably just want to do an update if the directory already exists...<br>
<br><div>HTH,</div><div>David</div><div><br><div class="gmail_quote">On Thu, Oct 2, 2008 at 10:16 AM, kent williams <span dir="ltr">&lt;<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Right now we have a Slicer3 style &#39;getbuildtest&#39; script to check out a<br>
bunch of Kitware packages in order to build an application. &nbsp;This<br>
basically works like this<br>
<br>
for all packages,<br>
 &nbsp;check out the package<br>
 &nbsp;configure it with cmake<br>
 &nbsp;build it.<br>
<br>
Since the &#39;configure it with cmake&#39; step is redundant over a series of<br>
patches, it seems like you should be able to user CMake to manage the<br>
whole process, but I&#39;m not sure that&#39;s true. &nbsp;What I&#39;d like to end up<br>
with the CMakeLists.txt file below. &nbsp;The question is this: I can<br>
certainly run CVS or SVN with EXECUTE_PROCESS, but will that happen<br>
early enough in the CMake config process that the ADD_SUBDIRECTORY<br>
clauses will be able to actually find the checked out subdirectories?<br>
<br>
Or should I just punt and have a &#39;check everything out&#39; script I run<br>
before running CMake?<br>
<br>
<br>
PROJECT(MyProjectBuild)<br>
#<br>
# check out all the source from various places<br>
<br>
#<br>
# set all CMake variables for the packages<br>
<br>
ADD_SUBDIRECTORY(tk)<br>
ADD_SUBDIRECTORY(tcl)<br>
ADD_SUBDIRECTORY(Insight)<br>
ADD_SUBDIRECTORY(VTK)<br>
ADD_SUDIRECTORY(vtkinria3d)<br>
ADD_SUBDIRECTORY(MyProject)<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div></div>