title: How to use CMake to generate vs project, which link to some .dll files
body: <p>I use Cmake to generate VS project, based on some dll file by </p>
  
  <pre><code>if(WIN32)
      MESSAGE(WINDOWS)
      LINK_LIBRARIES(${***_Test_SOURCE_DIR}/../../Build/Win32/Release/***.dll)
  else(WIN32)
      MESSAGE(POSIX)
      LINK_LIBRARIES(${***_Test_SOURCE_DIR}/../../Build/POSIX/lib***.so)
  endif(WIN32)
  </code></pre>
  
  <p>But when I open the generated project, build and it throw out </p>
  
  <pre><code>\***.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0
  </code></pre>
  
  <p>Is anyone has ideas?</p>
  
  <p>If do not use CMake, how to add <strong>external dll</strong>(not reference to some project) file in VS project. Is there any strict steps I can follow?</p>
  
  <p>Thanks</p>