title: CMAKE shared library only creates the DLL and not the associated LIB
body: <p>I am using CMAKE for configuring my project for Visual Studio and I have the following setup:</p>
  
  <pre><code>PROJECT(Proj1)
  CMAKE_MINIMUM_REQUIRED(VERSION 3.2.0)
  # RPATH stuff - to avoid losing linking information
  SET(CMAKE_SKIP_BUILD_RPATH FALSE)
  SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
  SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
  
  
  # Variable for header and source files
  SET(HEADERS
    api/mylib.h   
  )
  SET(SOURCES
    api/mylib.cpp
  )
  
  # Compile and link
  ADD_LIBRARY(${NAME} SHARED ${HEADERS} ${SOURCES})
  TARGET_LINK_LIBRARIES(${NAME} ${LIBS})
  </code></pre>
  
  <p>Now, this creates the project and I can compile it but it only produces the <code>Proj1.dll</code> file and not the associatwed <code>lib</code> file. I thought both the library and the shared object file should have been produced. </p>
  
  <p>I am using <code>CMAKE 3.11.0</code> and <code>Visual Studio Community 2017</code>  </p>