[Cmake] use a static library

Andy Cedilnik andy.cedilnik@kitware.com
27 Feb 2003 08:23:16 -0500


Hi,

If you want to create static library:

ADD_LIBRARY(foo STATIC source.c source1.c...)

If you want to link static library to your project:

TARGET_LINK_LIBRARIES(bar foo)

or 

TARGET_LINK_LIBRARIES(bar /path/to/foo/libfoo.a)

				Andy

On Thu, 2003-02-27 at 06:59, imho wrote:
> Hi,
> 
> How do I link a static .a library on linux with cmake?
> 
> Thanks
> 
> _______________________________________________
> Cmake mailing list
> Cmake@public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake