[Insight-users] which ITK libraries are searched and linked when Multiversion ITK installed ?

Bill Lorensen bill.lorensen at gmail.com
Thu Jan 5 17:48:43 EST 2012


In itkv4 only use ITK_LIBRARIES

target_link_libraries( image_read_write  ### And here?
  ${ITK_LIBRARIES}
  itkCommon
  itkIO
 )
should be
target_link_libraries( image_read_write  ### And here?
  ${ITK_LIBRARIES}
 )



On Thu, Jan 5, 2012 at 5:38 PM, Matt McCormick
<matt.mccormick at kitware.com>wrote:

> Hi Wenwu,
>
> To build against a specific version, set the CMake configuration
> variable, "ITK_DIR", to the path of the install or build for that
> version.
>
> Hope this helps,
>
> Matt
>
> On Thu, Jan 5, 2012 at 5:06 PM, Wenwu <cool.wenwu at gmail.com> wrote:
> > Hi everyone,
> >
> > At the beginning, The ITK3.2 was installed in my computer(window7, visual
> > studio 2008 c++ express),  then I  installed the lastest version ITK4.0,
> so
> > now, how to write the CMakeLists?  Maybe it is very easy! If you are
> free,
> > please tell me!!  Thank you very much!
> >
> >
> > e.g,
> >
> > cmake_minimum_required( VERSION 2.8 )
> > project( image_read_write )
> >
> > find_package (ITK)  ### here, because of two ITK version in my computer,
> how
> > to specify the specific one?
> > if (ITK_FOUND)
> >   include ( ${ITK_USE_FILE} )
> > else (ITK_FOUND)
> >   message (FATAL_ERROR "Cannot build without ITK, Please set ITK_DIR.")
> > endif (ITK_FOUND)
> >
> > add_executable( image_read_write main.cxx )
> >
> > target_link_libraries( image_read_write  ### And here?
> >   ${ITK_LIBRARIES}
> >   itkCommon
> >   itkIO
> >  )
> >
> >
> >
> >
> > --
> > Wenwu Zhu
> > University of Strasbourg, France
> > Email address: cool.wenwu at gmail.com
> >
> >
> > _____________________________________
> > 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.html
> >
> > 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
> >
> _____________________________________
> 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.html
>
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120105/6501ca87/attachment.htm>


More information about the Insight-users mailing list