You could run ar -x at cmake runtime using
execute_process(...)

and then glob the objects.

If your archive is created by cmake, you could write a shell script, that unpacks the archive and do what you wants with the object files.

Andreas

Am 26.06.2011 07:38, schrieb Dan Furtney:
I have a CMakeLists.txt file file that creates an archive from several files. It includes a custom command that dumps the list of objects from the archive using ar –x.
 
I need to link these objects with another custom command. What is the best way to get the list of objects into the link line? Currently the object files are dumping to CMAKE_CURRENT_BINARY_DIR.
 
I tried glob but the files need to be present at cmake run-time. Thanks again for any help.
_______________________________________________ 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

_______________________________________________
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

Reply via email to