Re: [CMake] creating a library from other one

2018-08-31 Thread Stéphane Ancelot
Le 31/08/2018 à 16:31, Eric Noulard a écrit : Le ven. 31 août 2018 à 15:59, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : I ended with : add_custom_target(combined ALL    COMMAND ${CMAKE_AR} rc libcombined.a $ $) Quick & dirty :-) There is the "thin" optio

Re: [CMake] creating a library from other one

2018-08-31 Thread Eric Noulard
Le ven. 31 août 2018 à 15:59, Stéphane Ancelot a écrit : > I ended with : > > add_custom_target(combined ALL >COMMAND ${CMAKE_AR} rc libcombined.a $ $ FILE:lib2>) > Quick & dirty :-) There is the "thin" option of ar as well: https://stackoverflow.com/questions/3821916/how-to-merge-two-ar-sta

Re: [CMake] creating a library from other one

2018-08-31 Thread Stéphane Ancelot
I ended with : add_custom_target(combined ALL    COMMAND ${CMAKE_AR} rc libcombined.a $ $) Le 31/08/2018 à 15:24, Eric Noulard a écrit : First create OBJECT libraries instead of static Then create as many STATIC libraries as you want that includes as many OBJECT libraries content as you wan

Re: [CMake] creating a library from other one

2018-08-31 Thread Eric Noulard
First create OBJECT libraries instead of static Then create as many STATIC libraries as you want that includes as many OBJECT libraries content as you want. Le ven. 31 août 2018 à 15:17, Stéphane Ancelot a écrit : > Hi, > > I have got some static libraries generated, that I would like to put i

[CMake] creating a library from other one

2018-08-31 Thread Stéphane Ancelot
Hi, I have got some static libraries generated, that  I would like to put in a common one. how can I proceed ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services t