[Insight-developers] CMake and external toolkits
Bill Hoffman
bill.hoffman@kitware.com
Fri, 06 Apr 2001 11:55:35 -0400
Sorry, it was changed but the doc was not updated.
Should be:
FIND_INCLUDE( FLTK_INCLUDE_DIR fltk.h H:/usr/local/fltk )
First argument is the variable to be defined.
Second argument is a .h file to look for.
Third argument is an optional extra path to look for the file in.
The standard PATH is searched by default.
-Bill
At 11:26 AM 4/6/2001 -0400, Luis Ibanez wrote:
>Bill,
>
>I added the FIND_INCLUDE and FIND_LIBRARY lines,
>but now I'm getting a CMake error message when
>running CMakeSetup. The message says : "CMake Error:".
>
>Should I do something else before running CMakeSetup ?
>
>BTW: I removed the lines I was adding to CMakeCache.txt.
>
>The CMakeList file is commited in Unsupported/FltkImageViewer
>if you want to take a look at it, maybe I'm not following the
>right syntax.
>
>
>
>Thanks
>
>
>Luis
>
>
>
>--------------
>
>
>On Fri, 6 Apr 2001, Bill Hoffman wrote:
>
>> You want to use these cmake commands:
>> cmFindIncludeCommand
>> cmFindLibraryCommand
>>
>> In your cmakelists file add these:
>>
>> FIND_INCLUDE( FLTK_INCLUDE path1 path2 )
>> FIND_LIBRARY( FLTK_LIBRARY try1 try2 )
>>
>> Then use FLTK_INCLUDE and FLTK_LIBRARY as a variables in the cmakelists file.
>> They will be put into the cache file automatically for you.
>>
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers