[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!


More information about the Insight-users mailing list