title: .lib and .dll file size difference on visual studio and cmake
body: <p>I followed
  <a href="https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=msvc-170" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?view=msvc-170</a>
  to create the dll in debug mode and did the same using cmake.</p>
  <pre><code>cmake_minimum_required(VERSION 3.19.1)
  
  project(MathLibrary)
  
  set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
  
  add_library(MathLibrary SHARED MathLibrary.cpp)
  </code></pre>
  <p>After all I got</p>
  <pre><code>#### debug vs
  
  2.4K Apr  7 15:10 Debug/MathLibrary.lib
   38K Apr  7 15:10 Debug/MathLibrary.dll*
  
  #### debug cmake
  
  2.9K Apr  7 16:20 MathLibrary/build/Debug/MathLibrary.lib
   52K Apr  7 16:20 MathLibrary/build/Debug/MathLibrary.dll*
  </code></pre>
  <p>Why file size is different? What else is different? Is it possible to create an identical file using cmake? How?</p>