_USRDLL is not defined for Windows DLL project
When I create new Windows DLL project in Visual Studio (2015 in my case), _USRDLL is defined by default for all configurations. This macro allows to distinguish between application and DLL targets.
CMake does not define this macro in generated vcxproj file.
Visual Studio 2015, cmake 3.7.0-rc1.