parent
b949c4792d
commit
658442bef4
7 changed files with 42 additions and 15 deletions
@ -0,0 +1,7 @@ |
||||
# Generated source defined in one directory but |
||||
# used in another. |
||||
|
||||
e = executable('sideprog', 'sideprog.cpp', generated, |
||||
override_options : ['unity=off'], |
||||
dependencies : dep) |
||||
test('sideprog', e) |
@ -0,0 +1,16 @@ |
||||
#include"com/mesonbuild/simple.pb.h" |
||||
#include"com/mesonbuild/subsite/complex.pb.h" |
||||
|
||||
#include<memory> |
||||
|
||||
int main(int argc, char **argv) { |
||||
GOOGLE_PROTOBUF_VERIFY_VERSION; |
||||
{ |
||||
subdirectorial::SimpleMessage *s = new subdirectorial::SimpleMessage(); |
||||
s->set_the_integer(3); |
||||
subdirectorial::ComplexMessage c; |
||||
c.set_allocated_sm(s); |
||||
} |
||||
google::protobuf::ShutdownProtobufLibrary(); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue