[Cmake] use a static library
Andy Cedilnik
andy.cedilnik at kitware.com
Thu Feb 27 08:23:16 EST 2003
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 at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list