<div class="gmail_quote">On Wed, Feb 11, 2009 at 12:15 AM, ankit jain <span dir="ltr"><<a href="mailto:ankitguddu@gmail.com">ankitguddu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div class="gmail_quote"><div><div class="Wj3C7c">
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div><span></span>If our library which we want to link is not in the curre tn project and we linkan executable to it through target_link_libraries by giving it entire path like /another/project/lib, will it not work properly.</div>
</div></blockquote></div></div></blockquote><div><br>It should work properly. You should use the find_library() command to locate the library, however, unless you can guarantee all users will have it in exactly the same place and will never want to change the path to the library.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div><div>is it compulsory to use import and export targets for it.</div></div></blockquote></div></div></blockquote><div><br>No. They offer added flexibility if you need it, however.<br></div></div><br>-- <br>Philip Lowman<br>