[Insight-developers] CMake and external toolkits

Bill Hoffman bill.hoffman@kitware.com
Fri, 06 Apr 2001 12:51:35 -0400


No it is what you want.  It works just like autoconf, you tell
it one file to look for, and it extracts the PATH to the file, not
the file.

-Bill

At 12:25 PM 4/6/2001 -0400, Luis Ibanez wrote:

>Maybe this is not what I need, because here the .h file has to
>be specified. I just want to put a generic path to a whole set
>of .h files, like if it was an environment variable to add in
>a Makefile after the -I option.
>
>It is like if I wanted to build something using ITK and VTK,
>... how to define: VTK_INCLUDE_DIR, without having to list
>all the possible header in there ?
>
>
>May I write something like:
>
>FIND_INCLUDE( FLTK_INCLUDE_DIR   *.h   H:/usr/local/fltk )   ?
>
>---
>
>...another way to deal with it is just to add explicitly the
>path to the command INCLUDE_DIRECTORIES, like:
>
>INCLUDE_DIRECTORIES(
>${ITK...
>...
>H:/usr/local/fltk
>)
>
>
>but, that has to be done in every CMakeFile that uses fltk...
>it seems to be better to have the variable defined in only
>on central place.
>
>
>
>Luis