cmake find_library without "lib" prefix name
<p>I have a library called <code>mylib.a</code> in the path <code>/home/test/libs/</code>. </p>

<p>How can I add it to the project??</p>

<pre><code>find_library(IDA_LIB
                 NAMES "mylib.a"
                 PATHS "/home/test/libs"
                 NO_DEFAULT_PATH)
</code></pre>

<p>Since it does not have the prefix <code>lib</code> cmake does not find it. If I change the library name to <code>libmylib.a</code> if finds it fine.</p>