[CMake] How to create a static library out of other static libraries in CMAKE ?

Tyler Roscoe tyler at cryptio.net
Sun Jun 14 22:52:28 EDT 2009


On Sun, Jun 14, 2009 at 06:55:15PM -0700, Xiangyun Kong wrote:
> I take it back, even I specify the full names, 
> the library is built without taking those static libraries linked
> into the target library.

Oh right. It's still the weekend here :).

add_library (myLib STATIC ${some_object_files})
target_link_libraries (myLib ${some_libraries})

tyler


More information about the CMake mailing list