Hi,<br><br>I am assuming it is at the moment (cmake 2.6.2 ) not possible to export an imported target...<br><br>When I do : <br><br># ${MyProject_EXPORT_CMAKE} contains the file path to a cmake script generated by export,<br>
# declaring ADD_LIBRARY(MyProject SHARED IMPORTED) ( among other stuff )<br>include(${MyProject_EXPORT_CMAKE})<br>export(TARGETS MyProject APPEND FILE Export.cmake)<br><br>I get : 
<br><span style="color: rgb(255, 0, 0);">export given target &quot;MyProject&quot; which is not built by this project.</span><br><meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }</style><br>What about having the imported target and its properties transitively exported again ?<br>Has this been planned for the future or ruled out already ?<br><br>If you wonder why I might want to do this, its in the case where I have :<br>
<br>ProjectA depending on ProjectB depending on ProjectC<br>ProjectC is an imported target into ProjectB<br>However to build projectA and link ProjectB I must also be able to access ProjectC properties...<br>I was planning to export projectC from projectB, so that projectA can access it and do what it needs with it ( link properly the target without fullpath, copy the binary built target (.so ) to run little executable tests in place, etc.)<br>
<br>Just working on some cmake scripts right now, to make it easier to startup cmake based projects...<br>I can give links to people interested to have a look... just let me know.<br><br>Thank you,<br><br>--<br>Alex<br><br>