[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
More information about the Insight-developers
mailing list