title: Generating .dll using CMake
body: <p>I have the following C files in windows XP.
  optBladWriter.c
  optWriteNlpEmpsFile.c
  I would like to generate DLL for this code.
  I used the command add_library .
  My make file has the following :</p>
  <pre><code>CMAKE_MINIMUM_REQUIRED ( VERSION 2.6)
  add_library (optFmg optBladWriter.c optWriteNlpEmpsFile.c) 
  </code></pre>
  <p>after running CMake using command prompt Project.sln is created. I imported it to the visual studio and built it. I got the optFmg.lib file. But I want the optFmg.dll file.</p>
  <p>Can you help me in generating the dll file using cmake in the above case. Is there any particular command similar to add_library.</p>