<div>Hi all,</div>
<div> </div>
<div>I have folder f1 having csome cpp files. structure is like this:</div>
<div>f1</div>
<div>....c1.cpp</div>
<div>....c2.cpp</div>
<div> </div>
<div>now i create an executable for it as </div>
<div>add_executable(myexe c1.cpp c2.cpp)</div>
<div> </div>
<div>the path of f1 folder is /home/ankit/mycode/f1</div>
<div>now i want to link myexe to a library lib.so and lib1.a which are not in this folder but resides in other folder suppose in lib whose path is something like this:</div>
<div> </div>
<div>/home/ankit/mycode/lib/lib.so </div>
<div>/home/ankit/mycode/lib/lib1.a</div>
<div> </div>
<div>How to do achieve this linkage so that no unref came. </div>
<div>Right now iam doing it usinmg target_link_libraries by giving the entire path somthing like this:</div>
<div> </div>
<div>target_link_libraries(myexe /home/ankit/mycode/lib/lib.so
<div>/home/ankit/mycode/lib/lib1.a)</div>
<div> </div>
<div>but it gives some unrefs. i dont know why.</div>
<div> </div>
<div>Can u tell me how to achieve it.</div>
<div> </div>
<div>Regards-</div>
<div>Ankit</div></div>
<div> </div>