Set different libs for Debug and Release build: qserialdeviced.lib and lqserialdevice.lib