Use PROTOBUF_GENERATE_CPP to run protoc.

Instead of running protoc with a manual add_custom_command,
use the PROTOBUF_GENERATE_CPP macro provided in FindProtobuf.