Re: [protobuf] Best practices for proto file organization in large projects

2012-06-20 Thread Justin Muncaster
Okay, so I got this build tree working. I had to: (1) Modify FindProtobuf.cmake (the build rule) so that I can specify the proto_path (2) Modify each .proto import to specify the file to import using the full path from the root, even if the files are parallel to the .proto source. (3) Add

Re: [protobuf] Best practices for proto file organization in large projects

2012-06-19 Thread Evan Jones
On Jun 18, 2012, at 22:49 , Justin Muncaster wrote: I'm currently changing our build system to be cmake based and I'm again finding myself fighting with the build system to get the .proto to be automatically generated in a way where they build correctly. What specific problems are you

[protobuf] Best practices for proto file organization in large projects

2012-06-18 Thread Justin Muncaster
Hello, I've been using protocol buffers for a while, and I love the library, however I find that when using them in large projects I generally have to fight with the compiler to get protoc to play nicely with my build system. My projects are organized as follows: common/foo/foo.h