I had it that way before the last commit (3396b45) but changed it back because it requires copying the pb.h file to the build dir after the fact (proto itself is unable to put the .pb.cc and .pb.h files it generates in different directories, as far as I know) which just seemed messy to me.