[CMake] How to create a static library out of other static libraries in CMAKE ?
Xiangyun Kong
xykong at yahoo.com
Sun Jun 14 21:41:28 EDT 2009
It works if I specify the full name of the libraries
including the extension. But I would like to use
a system-independent names of the libraries.
Thanks.
Xiangyun
--- On Sun, 6/14/09, Tyler Roscoe <tyler at cryptio.net> wrote:
> From: Tyler Roscoe <tyler at cryptio.net>
> Subject: Re: [CMake] How to create a static library out of other static libraries in CMAKE ?
> To: "Xiangyun Kong" <xykong at yahoo.com>
> Cc: cmake at cmake.org
> Date: Sunday, June 14, 2009, 5:44 PM
> On Sun, Jun 14, 2009 at 03:40:56PM
> -0700, Xiangyun Kong wrote:
> > Is there a way in CMAKE to create a static library out
> of
> > existing static libraries and object files ?
>
> Does something like this work?
>
> add_library (myLib STATIC ${some_libraries}
> ${some_object_files})
>
>
> tyler
>
More information about the CMake
mailing list