[CMake] adding prebuilt .o files to a cmake.a

David Cole david.cole at kitware.com
Thu Sep 9 08:41:34 EDT 2010


To the best of my knowledge, there is not an easy, cross-platform way to
decompose.


On Wed, Sep 8, 2010 at 11:43 PM, Tim St. Clair <timothysc at gmail.com> wrote:

> I guess a follow on to that would be the opposite to composition.  If I
> wanted to decompose a cmake library to determine what object files it
> contains is there an easy mechanism for this?
>
> Cheers,
> Tim
>
>
> On Wed, Sep 8, 2010 at 4:30 PM, David Cole <david.cole at kitware.com> wrote:
>
>> 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
>>
>>
>
>
> --
> Cheers,
> Timothy St. Clair
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100909/9218e6d5/attachment-0001.htm>


More information about the CMake mailing list