<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Alexander Neundorf wrote:
<blockquote cite="mid20070302101715.44370@gmx.net" type="cite">
<pre wrap="">Von: "Brandon J. Van Every" <a class="moz-txt-link-rfc2396E" href="mailto:bvanevery@gmail.com"><bvanevery@gmail.com></a>
</pre>
<blockquote type="cite">
<pre wrap="">Jong-young Park wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I need both lib.a & lib.so as project result.
But ADD_LIBRARY command may support Only 1 type, I think.
Not any other method?
Thanks for reading.
</pre>
</blockquote>
<pre wrap="">]
You will have to do ADD_LIBRARY twice, once for the shared, once for the
static. You'll have to give them different target names. They can have
the same rootname, i.e. libfoo.a and libfoo.dll.a are possible. But
CMake must have a unique name for each target. I typically choose
target names like libfoo and libfoo-static.
</pre>
</blockquote>
<pre wrap=""><!---->
Is this already in the FAQ ?
</pre>
</blockquote>
<br>
It wasn't.<br>
<br>
<blockquote cite="mid20070302101715.44370@gmx.net" type="cite">
<pre wrap="">If not, can you please add it there ?
</pre>
</blockquote>
<br>
Did it, and rationalized the FAQ categories while I was at it. See<br>
<a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ#Library_questions">http://www.cmake.org/Wiki/CMake_FAQ#Library_questions</a><br>
<br>
<br>
Cheers,<br>
Brandon Van Every<br>
<br>
</body>
</html>