<div class="gmail_quote">On Thu, Apr 2, 2009 at 3:19 PM, Ian Monroe <span dir="ltr">&lt;<a href="mailto:ian@monroe.nu">ian@monroe.nu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve seen this question in the archives, but I was wondering if<br>
there&#39;s been any progress since I last saw it asked (&gt;1 year ago).<br>
<br>
I have some unit tests. I need to run a command or two and set some<br>
environmental variables before all the tests start. Does CMake have a<br>
solution for this yet? Are there any common practices to handle what<br>
I&#39;m guessing is a pretty common thing?<br>
<br>
I notice that CTest would allow me to setup a test environment, but<br>
since it requires hardcoding the source and build directory it seems<br>
pretty inappropriate as a common-repo script used by multiple<br>
developers. Possibly the solution is to figure out how CTest can be<br>
used anyways.</blockquote><div><br>This feature has been implemented in CMake CVS for some time thanks to David Cole.  If someone would commit the patch I sent in so it shows up in the documentation (attached to this bug) they could then close this bug.<br>
<br><a href="http://public.kitware.com/Bug/view.php?id=7885">http://public.kitware.com/Bug/view.php?id=7885</a><br><br>also this duplicate bug as well.<br><a href="http://public.kitware.com/Bug/view.php?id=6391">http://public.kitware.com/Bug/view.php?id=6391</a><br>
</div></div><br>-- <br>Philip Lowman<br>