[ITK Community] [Insight-developers] CreateTestDriver, include path
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue Jan 7 08:15:03 EST 2014
For each ITK module only the other modules which it depends on are included. Take a look at this file:
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/IO/HDF5/itk-module.cmake
On Jan 6, 2014, at 11:54 PM, David Froger <david.froger at inria.fr> wrote:
> Dear all,
>
> I'm trying to add:
> #include "itkGenerateImageSource.h"
>
> in the file Modules/IO/HDF5/test/itkHDF5ImageIOStreamingReadWriteTest.cxx, but
> the file itkGenerateImageSource.h is not found when compiling.
>
> Modules/IO/HDF5/test/CMakeLists.txt is:
>
> itk_module_test()
> set(ITKIOHDF5Tests
> itkHDF5ImageIOTest.cxx
> itkHDF5ImageIOStreamingReadWriteTest.cxx
> )
>
> CreateTestDriver(ITKIOHDF5 "${ITKIOHDF5-Test_LIBRARIES}" "${ITKIOHDF5Tests}")
>
> itk_add_test(NAME itkHDF5ImageIOTest
> COMMAND ITKIOHDF5TestDriver itkHDF5ImageIOTest ${ITK_TEST_OUTPUT_DIR} )
> itk_add_test(NAME itkHDF5ImageIOStreamingReadWriteTest
> COMMAND ITKIOHDF5TestDriver itkHDF5ImageIOStreamingReadWriteTest
> ${ITK_TEST_OUTPUT_DIR} )
>
> How can I give the path to
> Modules/Filtering/ImageSources/include/itkGenerateImageSource.h when compiling
> itkHDF5ImageIOStreamingReadWriteTest.cxx ? ( -I compiler flag)
>
> I tried:
> CreateTestDriver(ITKIOHDF5 "${ITKIOHDF5-Test_LIBRARIES} ${ITKImageSources}" "${ITKIOHDF5Tests}")
> and:
> CreateTestDriver(ITKIOHDF5 "${ITKIOHDF5-Test_LIBRARIES}" "${ITKImageSources}" "${ITKIOHDF5Tests}")
>
> Thank you!
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers
More information about the Community
mailing list