diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-28 10:55:58 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-28 10:55:58 +0200 |
| commit | 85d25eebd38bb278ad598a291a007938854945a4 (patch) | |
| tree | b6f26a8f5a301c9a18d7ab6de5805de7d660cade /libcmix-protobuf | |
| parent | fa0b4963e977c59586b41e146ea13f44bda714ab (diff) | |
| download | cmix-85d25eebd38bb278ad598a291a007938854945a4.tar.gz cmix-85d25eebd38bb278ad598a291a007938854945a4.tar.bz2 cmix-85d25eebd38bb278ad598a291a007938854945a4.zip | |
Made changes so we can have a 1 Node cmix network.
Diffstat (limited to 'libcmix-protobuf')
| -rw-r--r-- | libcmix-protobuf/CMakeLists.txt | 19 | ||||
| -rw-r--r-- | libcmix-protobuf/cmix.proto | 3 |
2 files changed, 22 insertions, 0 deletions
diff --git a/libcmix-protobuf/CMakeLists.txt b/libcmix-protobuf/CMakeLists.txt new file mode 100644 index 0000000..f2a8f3d --- /dev/null +++ b/libcmix-protobuf/CMakeLists.txt @@ -0,0 +1,19 @@ +find_package(Protobuf REQUIRED) + +set(proto_files cmix.proto) + +protobuf_generate_cpp(proto_sources proto_headers + ${proto_files} +) + +add_library(cmix-protobuf + ${proto_files} + ${proto_headers} ${proto_sources} +) + +target_include_directories(cmix-protobuf + PUBLIC ${PROTOBUF_INCLUDE_DIRS} + PUBLIC ${CMAKE_CURRENT_BINARY_DIR} +) + +target_link_libraries(cmix-protobuf ${PROTOBUF_LIBRARIES})
\ No newline at end of file diff --git a/libcmix-protobuf/cmix.proto b/libcmix-protobuf/cmix.proto new file mode 100644 index 0000000..f0c1dc3 --- /dev/null +++ b/libcmix-protobuf/cmix.proto @@ -0,0 +1,3 @@ +message initialization { + required bytes public_share = 1; +} |
