Le ven. 31 août 2018 à 15:59, Stéphane Ancelot <sance...@numalliance.com> a écrit :
> I ended with : > > add_custom_target(combined ALL > COMMAND ${CMAKE_AR} rc libcombined.a $<TARGET_FILE:lib1> $<TARGET_ > FILE:lib2>) > Quick & dirty :-) There is the "thin" option of ar as well: https://stackoverflow.com/questions/3821916/how-to-merge-two-ar-static-libraries-into-one if you know the content of lib1 and lib2 don't have name clash. However libcombined.a is not a proper library target for CMake now. And by the way does this work on Window too ? Or may be you don't care ? -- Eric
-- 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 to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake