get_target_properties() with the property SOURCES<br>then for each value you get back there, do a <br>get_source_file_properties() for LOCATION<br>and add all such locations to a new list, then create a target with that source list.<br>
<br><div class="gmail_quote">On Wed, Mar 10, 2010 at 5:04 PM, Markus Raab <span dir="ltr"><<a href="mailto:usenet@markus-raab.org">usenet@markus-raab.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Thank you both for your help!<br>
<div class="im"><br>
Ryan Pavlik wrote:<br>
> A bit less work: if you're building all the modules in CMake too, you<br>
> could loop through them extracting their source lists then adding those to<br>
> a new target: probably could be generalizable to a custom command in a<br>
> cmake module.<br>
<br>
</div>Yes, all modules are going to be build withing cmake too.<br>
(Thats the plan if I can solve the static/dynamic issue.)<br>
<br>
What do you mean with source lists? How could I extract their source lists?<br>
And how to I add those to the new target?<br>
<br>
best regards<br>
Markus<br>
<font color="#888888"><br>
--<br>
<a href="http://www.markus-raab.org" target="_blank">http://www.markus-raab.org</a> | Der Überfluß pflegt auch der<br>
-o) | Allerweisesten Verstand zu blenden. --<br>
Kernel 2.6.24-1-a /\ | Kaiser Friedrich II<br>
</font><div class="im">on a x86_64 _\_v |<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>