<div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Hello,</span><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">I started learning CMAKE recently. I am encountering the philosophy of targets and properties since version 3.0. </div><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">I have a project where I should build OpenCV residing in my project folder as /myproject/third-party/opencv and then link it's library to my own target. </div><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">After searching a lot on stack overflow and internet, I always find CMake scripts of version < 2.8. Every single answer is unique. I could not find any proper example of building a third-party libraries the right way, exporting them and linking them with my own targets. </div><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Could some guide me or post a example of best way to build a external project like opencv residing inside the project folder and linking it's library to my own targets. </div><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Thank you,</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px"><br></div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Best regards,</div><div dir="auto" style="font-family:sans-serif;font-size:12.8px">Kamal</div></div>