<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Assuming you mean GTEST rather than
CTEST (you seem to use them interchangeably) I think something
like this in your CMakeLists.txt should make the option show up in
cmake-gui/ccmake:<br>
set(GTEST_ROOT "" CACHE PATH "Google Test root directory")<br>
<br>
Nils<br>
<br>
On 05/08/2013 01:21 PM, Witold Eryk Wolski wrote:<br>
</div>
<blockquote
cite="mid:97ad34c3-8d49-467d-85b5-89179086cd31@googlegroups.com"
type="cite">Hi,<br>
<br>
would like to start using gtest with a project. I use cmake to
configure the project.<br>
<br>
So I was pleased to see that :<br>
cmake 2.8 ships with an FindCTest.cmake file. <br>
<br>
However FindCTest.cmake expects me either to set en env variable
CTEST_ROOT or pass it as an cmake ariable (I guess with
-DCTEST_ROOT ?)<br>
<br>
However, the convention I have so far is that all dependencies can
be configured using ccmake or cmake-gui.<br>
Therefore, I would like to do the same with gtest. However, can't
find a way to set GTEST_ROOT with ccmake or cmake-gui.<br>
<br>
Can I add anything, and exactly what, to my CMakeLists.txt file so
that CTEST_ROOT will show up in ccmake in order to be set
properly?<br>
<br>
<br>
regards<br>
Witold<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>