<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You could run ar -x at cmake runtime using<br>
execute_process(...)<br>
<br>
and then glob the objects.<br>
<br>
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.<br>
<br>
Andreas<br>
<br>
Am 26.06.2011 07:38, schrieb Dan Furtney:
<blockquote cite="mid:B4C17D84C4D04E93A1707E31FF8F794F@HOME1"
 type="cite">
  <div dir="ltr">
  <div
 style="font-family: 'Calibri'; color: rgb(0, 0, 0); font-size: 12pt;">
  <div>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.</div>
  <div> </div>
  <div>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.</div>
  <div> </div>
  <div>I tried glob but the files need to be present at cmake run-time.
Thanks again for any help.</div>
  </div>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>