msvc and mingw: for debug build, add -DCMAKE_BUILD_TYPE=Debug before "-G".

msvc:dbus.sln solution file will be created. Build and install the Debug and Release builds with the IDE. You can switch between the Debug and Release configuration in the
Build -> Configuration Manager menu.

msvc tip: to perform compilation and installation from the command line, type: