From 85d25eebd38bb278ad598a291a007938854945a4 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Wed, 28 Sep 2016 10:55:58 +0200 Subject: Made changes so we can have a 1 Node cmix network. --- libcmix-protobuf/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libcmix-protobuf/CMakeLists.txt (limited to 'libcmix-protobuf/CMakeLists.txt') 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 -- cgit v1.2.3-70-g09d2