[Insight-users] Read an image!! HELP PLEASE!!!!!!!!!!!!

David Doria daviddoria at gmail.com
Tue Jan 17 17:00:50 EST 2012


2012/1/17 Massinissa Bandou <Massinissa.Bandou at usherbrooke.ca>:
> Hello
>
> I'm new on ITK. I have installed it correctly and I successfully run Hello
> world.
> I'm using Windows7 64bits and VS2010. I tried to read an Image but.....
> I created a folder which it has a CMakefile.txt, C++ and some headers.
> ===============CMakefile.txt=================
> cmake_minimum_required (VERSION 2.6)
> PROJECT( myProject )
>
> FIND_PACKAGE ( ITK   REQUIRED )
> IF ( ITK_FOUND )
>         INCLUDE( ${ITK_USE_FILE} )
> ENDIF( ITK_FOUND )
>
> ADD_EXECUTABLE( myProject   myProject.cxx )
> =============================================

Welcome to ITK. Please take a look at all of the examples on this page:
http://www.itk.org/Wiki/ITK/Examples

They will help get you started.

The line you are missing is
target_link_libraries(myProject ${ITK_LIBRARIES})

David


More information about the Insight-users mailing list