[Insight-users] [Insight-developers] CMake config problem: ITK + GDCM 2 + VTK
Karthik Krishnan
karthik.krishnan at kitware.com
Wed Jul 21 07:16:24 EDT 2010
On Wed, Jul 21, 2010 at 4:20 PM, Stephen Aylward <
stephen.aylward at kitware.com> wrote:
> Can't build MetaIO stand alone with this option. Could be made to
> work, but gets ugly.
>
Why ? (I believe you can build DICOMParser and most utilities stand alone as
well)
MetaIO/CMakeLists.txt would simply check if the few vars are not already
defined and if so assign then.
if (NOT METAIO_NAMESPACE)
set( METAIO_NAMESPACE "..." )
endif(NOT METAIO_NAMESPACE)
This way, its can be used as a part of packages other than ITK and VTK and
being built standalone as well, right ?
Thanks
--
karthik
>
> Still waiting to hear about a var that indicates if building in ITK or VTK.
>
> s
>
> On Tue, Jul 20, 2010 at 11:13 PM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
> > On Sun, Jul 18, 2010 at 7:34 PM, Karthik Krishnan
> > <karthik.krishnan at kitware.com> wrote:
> >> Hi Stephen:
> >>
> >> All I was suggesting was to move the lines :
> >>
> >> set( METAIO_USE_NAMESPACE .. )
> >> set( METAIO_NAMESPACE .. )
> >> set( METAIO_LibrariesToLinkAgainst .. )
> >>
> >> over to the parent directory, where there is no need to check
> VTK_VERSION
> >> etc, and then recurse into the MetaIO directory. Right now, there are
> switch
> >> statements in the MetaIO CMakeLists.txt files stating "IF
> METAIO_FOR_ITK"
> >> and "IF METAIO_FOR_VTK". The libraries in the Utilities folder, should
> not
> >> need know that they are being built as a part of ITK or VTK.
> >>
> >> Others adopt the same strategy. For instance :
> >>
> >> (a) DICOMParser : The upper level CMakeLists.txt checks if sets the
> >> variables : DICOMPARSER_NAMESPACE, DICOMPARSER_LIBRARY,
> >> DICOMPARSER_STANDALONE before recursing in
> >>
> >> (b) KWSys. Again, all the options, namespace names etc are set by the
> >> toolkit in the parent directory..
> >
> > Clearly the best option AFAIK.
> >
> > Thanks karthik,
> > --
> > Mathieu
> >
>
>
>
> --
>
> ==============================
> Stephen R. Aylward, Ph.D.
> Director of Medical Imaging Research
> Kitware, Inc. - North Carolina Office
> http://www.kitware.com
> stephen.aylward (Skype)
> (919) 969-6990 x300
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100721/82ec7515/attachment.htm>
More information about the Insight-users
mailing list