<!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">
Jong-young Park wrote:
<blockquote
 cite="midb2ccdb1d0703020018r1a335dceq359f1a0e4ba9aa45@mail.gmail.com"
 type="cite">
  <meta http-equiv="Context-Type"
 content="text/html; charset=ISO-8859-1">
I need both lib.a &amp; lib.so as project result.<br>
But ADD_LIBRARY command may support Only 1 type, I think.<br>
  <br>
Not any other method?<br>
  <br>
Thanks for reading.<br>
</blockquote>
]<br>
You will have to do ADD_LIBRARY twice, once for the shared, once for
the static.&nbsp; You'll have to give them different target names.&nbsp; They can
have the same rootname, i.e. libfoo.a and libfoo.dll.a are possible.&nbsp;
But CMake must have a unique name for each target.&nbsp; I typically choose
target names like libfoo and libfoo-static.<br>
<br>
<br>
Cheers,<br>
Brandon Van Every<br>
<br>
</body>
</html>