1

I'm working on the project with the a structure similar to the following:

root/inc/foo/bar/
root/src

I've just started to use Google Protocol Buffers and when I compile the code I found that I need add foo/bar/file.h to the file.cc file in order for the code to find the header. I don't plan to commit the .h and .cc files to the repo since they get automatically generated. Is there a parameter I can give protoc to seperate the header/source files into different directories and add the correct path to the source file #includes?

4

1 回答 1

1

也许你可以在执行协议后附加一个脚本“mv foo.h foofolder/”

于 2015-03-20T05:18:58.203 回答