added support for cmake for the consumer client