aboutsummaryrefslogtreecommitdiff
path: root/libcmix-protobuf/CMakeLists.txt
diff options
context:
space:
mode:
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