Hi all,<div><br></div><div>I'm using cmake to build projects and packages for delivrable. I have two projects that is not in the same build tree. Typically a project in a directory Lib and another one in a separate directory Program.</div>
<div>I use the exported tragets from Lib in Program by include the exports file generated by Lib project.</div><div>Now, I want to build a package with cpack inside my Program project. But when I try to set the installation path of my imported targets in Program/CMakeLists.txt I got this error :</div>
<div><br></div><div>install TARGETS which not exists in this directory</div><div><br></div><div>So, Is there any work around to package my code with all its imported dependencies without copying every file one by one ?</div>
<div><br></div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Jaonary</div>