Hi everyone, <div><br></div><div>I'm using find_library to find a library in a given directory but it has many different versions of this library listed as libcxcore.so, libcxcore.so.2.1 and libcxcore.so.2.1.0 I wrote a very simple cmake file </div>
<div><br></div><div><div>cmake_minimum_required(VERSION 2.8)</div><div><br></div><div>find_library(OpenCV_LIBRARY_RELEASE NAMES "cxcore" PATHS "/homes/ahanda/openCV2.1/OpenCV-2.1.0/opencvinstall/lib" NO_DEFAULT_PATH)</div>
<div><br></div><div>if ( OpenCV_LIBRARY_RELEASE)</div><div> message("LIBRARY FOUND = " ${OpenCV_LIBRARY_RELEASE})</div><div>endif()</div><div><br></div><div>if ( NOT OpenCV_LIBRARY_RELEASE)</div><div> message("LIBRARY NOT FOUND")</div>
<div>endif()</div></div><div><br></div><div>It works fine if I search for "cxcore" for which it returns me libcxcore.so and the OpenCV_LIBRARY_RELEASE as /homes/ahanda/openCV2.1/OpenCV-2.1.0/opencvinstall/lib/libcxcore.so</div>
<div><br></div><div>However if I try to search for cxcore21 or cxcore210 or even libcxcore.so.2.1.0 it won't return me anything and I'd always see LIBRARY NOT FOUND being printed. </div><div><br></div><div>Could anyone please let me know how to really search for libcxcore.so.2.1.0 file using find_library that is what should I put after NAMES to get the path of this library. I'm kind of surprised why wouldn't it find even if I search for libcxcore.so.2.1.0 .Your suggestions will be highly appreciated.</div>
<div><br></div><div>Thanks a lot!</div><div>Ankur.</div><div><br></div><div><br></div>