[Insight-users] Configure ITK with MSYS Makefiles

Matt McCormick matt.mccormick at kitware.com
Mon May 21 11:37:23 EDT 2012


Hi Massi,

It is best to use CMake to configure a project that uses ITK.  In your
CMakeLists.txt, add the lines

  find_package( ITK REQUIRED )
  include( ${ITK_USE_FILE}  )

This will include the ITK headers for any add_executable CMake command that
follows.  It will also define the CMake variable ITK_LIBRARIES, which can
be used with the CMake command target_link_libraries.

CMake can generate makefiles or project files for many different
development environments.  If you want to use the MSYS compiler with an
IDE, you can generate project files for Eclipse, CodeBlocks, or Qt Creator.

Hope this helps,
Matt

On Thu, May 10, 2012 at 2:39 PM, Massi <Massinissa.Bandou at usherbrooke.ca>wrote:

> Hi!
> I configured the latest version of ITK with cmake selecting "MSYS
> Makefiles"
> generator. After installing the msys-1.0-10, the MSYS shell generated me a
> bin, include and lib folders. I want to know if it's possible to integrate
> them in any integrated development environment just by adding ITK libraries
> and its header files?
>
> Thank you for your help!
>
> Massi
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/Configure-ITK-with-MSYS-Makefiles-tp7547845.html
> Sent from the ITK Insight Users mailing list archive at Nabble.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.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120521/489fe20e/attachment.htm>


More information about the Insight-users mailing list