ThirdParty tests are supplied by the third party software developers. They do not use the itk modular testing methodology. For nerd, if you want to add a test add it in:<div>~/ProjectsGIT/ITK/Modules/IO/NRRD/test/<br><br><div class="gmail_quote">
On Tue, Jul 3, 2012 at 11:36 PM, Steve M. Robbins <span dir="ltr">&lt;<a href="mailto:steve@sumost.ca" target="_blank">steve@sumost.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I tried to be clever and add a test to NrrdIO but it&#39;s proved harder<br>
than it should be.  I&#39;m following &quot;Approach A&quot; directions on the wiki<br>
<a href="http://www.itk.org/Wiki/ITK/Release_4/Modularization/_Add_tests" target="_blank">http://www.itk.org/Wiki/ITK/Release_4/Modularization/_Add_tests</a><br>
<br>
<br>
1. I created ThirdParty/NrrdIO/test/CMakeLists.txt containing:<br>
<br>
itk_module_test()<br>
set(ITKNrrdIOTests<br>
    itkNrrdSaneTest.cxx<br>
)<br>
<br>
CreateTestDriver(ITKNrrdIO  &quot;${ITKNrrdIO-Test_LIBRARIES}&quot; &quot;${ITKNrrdIOTests}&quot;)<br>
<br>
itk_add_test(NAME itkNrrdSaneTest<br>
    COMMAND ITKNrrdIOTestDriver itkNrrdSaneTest)<br>
<br>
<br>
2. Compiling fails:<br>
<br>
[  0%] Built target itkzlib<br>
[100%] Built target ITKNrrdIO<br>
[100%] Building CXX object Modules/ThirdParty/NrrdIO/test/CMakeFiles/ITKNrrdIOTestDriver.dir/ITKNrrdIOTestDriver.cxx.o<br>
/home/steve/Packages/insighttoolkit/upstream/ITK/build/Modules/ThirdParty/NrrdIO/test/ITKNrrdIOTestDriver.cxx:6:53: fatal error: itkTestDriverIncludeRequiredIOFactories.h: No such file or directory<br>
compilation terminated.<br>
make[2]: *** [Modules/ThirdParty/NrrdIO/test/CMakeFiles/ITKNrrdIOTestDriver.dir/ITKNrrdIOTestDriver.cxx.o] Error 1<br>
make[1]: *** [Modules/ThirdParty/NrrdIO/test/CMakeFiles/ITKNrrdIOTestDriver.dir/all] Error 2<br>
<br>
<br>
I can see that ITKNrrdIOTestDriver.cxx is generated and includes<br>
&quot;IncludeRequiredIOFactories.h&quot;.  What I can&#39;t see is how to get the<br>
right directories on the include path.  None of the examples I looked<br>
at (e.g. ITK/Modules/IO/BMP/test/CMakeLists.txt) use<br>
include_directories() ... what did I do wrong?<br>
<br>
Thanks,<br>
-Steve<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div>