aboutsummaryrefslogtreecommitdiff
path: root/libcmix-protobuf/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-28 10:55:58 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-28 10:55:58 +0200
commit85d25eebd38bb278ad598a291a007938854945a4 (patch)
treeb6f26a8f5a301c9a18d7ab6de5805de7d660cade /libcmix-protobuf/CMakeLists.txt
parentfa0b4963e977c59586b41e146ea13f44bda714ab (diff)
downloadcmix-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/CMakeLists.txt')
-rw-r--r--libcmix-protobuf/CMakeLists.txt19
1 files changed, 19 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