<div class="gmail_quote">On Wed, Feb 18, 2009 at 5:31 AM, ankit jain <span dir="ltr"><<a href="mailto:ankitguddu@gmail.com">ankitguddu@gmail.com</a>></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;">
<div>Hi all,</div>
<div> </div>
<div>I have a directory structure with follwoign cmakelist as:</div>
<div> </div>
<div>myfold</div>
<div>....Cmakelist.txt</div>
<div>....subfolder</div>
<div> </div>
<div>subfolder</div>
<div>....Cmakelists.txt</div>
<div>....myfile.cpp</div>
<div> </div>
<div>Contents of Cmakelist of subfolder:</div>
<div> </div>
<div>add_executable(myfile myfile.cpp)</div>
<div>target_link_libraries(myfile mylib)</div>
<div>add_test(t1 myfile)</div>
<div> </div>
<div>t1 is the test case defined in myfile.cpp whose executable i have made.</div>
<div> </div>
<div>Contents of Camkelist of myfolder:</div>
<div> </div>
<div>Project(myfolder)</div>
<div>ENABLE_TESTING()</div>
<div>add_subdirectory(subfolder)</div></blockquote><div><br>Looks fine to me.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
</div>
<div> </div>
<div>Now when i am running make test from the myfolder directory on the prompt it says test failed and saying error with ctest.</div></blockquote><div><br>You can use "make test ARGS=-V" to enable verbose mode which may tell you a bit more why the tests are failing. <br>
</div></div><br>-- <br>Philip Lowman<br>