Index: third_party/protobuf/cmake/protoc.cmake |
diff --git a/third_party/protobuf/cmake/protoc.cmake b/third_party/protobuf/cmake/protoc.cmake |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f07c389c976777e7685beb8e321e7ffcb98fcff |
--- /dev/null |
+++ b/third_party/protobuf/cmake/protoc.cmake |
@@ -0,0 +1,6 @@ |
+set(protoc_files |
+ ${protobuf_source_dir}/src/google/protobuf/compiler/main.cc |
+) |
+ |
+add_executable(protoc ${protoc_files}) |
+target_link_libraries(protoc libprotobuf libprotoc) |