cmake: rework dabba protobuf file generation.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>