[Insight-users] CMakeLists question
Bing Jian
bjian at cise.ufl.edu
Sun, 28 Mar 2004 16:05:23 -0500 (EST)
Hi, Silviu,
You can organize those small projects into one big project by
using subdirectories. Just like how ITK does. Then you only need
to FIND_PACKAGE(ITK) at root level.
Hope this helps.
--
Best wishes,
Bing Jian
bjian at cise.ufl.edu
On Sun, 28 Mar 2004, Silviu D Minut wrote:
> Of course, for a given project. But I'm going to have many small projects,
> to begin with.
>
> On Sun, 28 Mar 2004, Bing Jian wrote:
>
> >
> > Hi, Silviu,
> >
> > Based on my own experience, I think you only need to
> > enter the ITK path at the first time not every time.
> >
> > --
> > Best wishes,
> > Bing Jian
> > bjian at cise.ufl.edu
> >
> >
> > On Sat, 27 Mar 2004, Silviu D Minut wrote:
> >
> > > I'm trying to write my own CMakeLists.txt file for a simple project. In
> > > all examples I saw, the user is required to enter the ITK_DIR:
> > >
> > > # Find ITK.
> > > FIND_PACKAGE(ITK)
> > > IF(ITK_FOUND)
> > > INCLUDE(${ITK_USE_FILE})
> > > ELSE(ITK_FOUND)
> > > MESSAGE(FATAL_ERROR
> > > "Cannot build without ITK. Please set ITK_DIR.")
> > > ENDIF(ITK_FOUND)
> > >
> > > This is ok, but it's getting tiresome. I do have ITK installed, and it
> > > won't change its location any time soon. I don't mind cmake searching for
> > > ITK (I assume the FIND also sets some variables too), but I don't want to
> > > enter the path every time. How do I tell cmake beforehand what ITK_DIR
> > > should be?
> > >
> > > Thanks!
> > >
> > >
> > >
> > > _______________________________________________
> > > Insight-users mailing list
> > > Insight-users at itk.org
> > > http://www.itk.org/mailman/listinfo/insight-users
> > >
> > >
> >
>
>