[ITK Community] [Insight-developers] CreateTestDriver, include path
David Froger
david.froger at inria.fr
Tue Jan 7 01:54:37 EST 2014
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
More information about the Community
mailing list