How to use CMake to generate vs project, which link to some .dll files
I use Cmake to generate VS project, based on some dll file by 

    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)

But when I open the generated project, build and it throw out 

    \***.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0


Is anyone has ideas?

If do not use CMake, how to add **external dll**(not reference to some project) file in VS project. Is there any strict steps I can follow?

Thanks
How to use CMake to generate vs project, which link to some .dll files
===

I use Cmake to generate VS project, based on some dll file by 

    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)

But when I open the generated project, build and it throw out 

    \***.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0


Is anyone has ideas?

If do not use CMake, how to add **external dll**(not reference to some project) file in VS project. Is there any strict steps I can follow?

Thanks