[CMake] adding prebuilt .o files to a cmake.a
David Cole
david.cole at kitware.com
Wed Sep 8 17:30:24 EDT 2010
On Wed, Sep 8, 2010 at 4:54 PM, Tim St. Clair <timothysc at gmail.com> wrote:
> Folks,
>
> Is there an easy way (best practice) to add prebuilt .o files (external
> to my build) to a .a easily?
>
> --
> Cheers,
> Timothy St. Clair
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
If it's compatible with the other .o files being built to go in your
library, just add the .o file in question as a "source file":
add_library(mylib /path/to/my.o ${other_sources})
HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100908/639274d0/attachment.htm>
More information about the CMake
mailing list