Make protobuf compilation part of cmake