[ITK Community] [Insight-users] run test manually

David Froger david.froger at inria.fr
Tue Dec 3 04:37:40 EST 2013


Quoting Bill Lorensen (2013-12-02 17:12:38)
> I suggest copying the "test" into a new directory .
> 
> Then change the line:
> itkHDF5ImageIOStreamingReadWriteTest(int ac, char * av [])
> to
> main(int ac, char * av [])
> 
> Then use a CMakeLists.txt file like this:
> 
> make_minimum_required(VERSION 2.8)
> 
> project(HDFExample)
> 
> find_package(ITK REQUIRED)
> include(${ITK_USE_FILE})
> 
> add_executable(HDFExample MACOSX_BUNDLE
> itkHDF5ImageIOStreamingReadWriteTest.cxx)
> target_link_libraries(HDFExample ${ITK_LIBRARIES})

Works nice, thanks. Indeed, a main function is required!
_____________________________________
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://www.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-users



More information about the Community mailing list