aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf/3.6.0/cmake/protoc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/protobuf/3.6.0/cmake/protoc.cmake')
-rw-r--r--third_party/protobuf/3.6.0/cmake/protoc.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/protobuf/3.6.0/cmake/protoc.cmake b/third_party/protobuf/3.6.0/cmake/protoc.cmake
new file mode 100644
index 0000000000..5777b16ed2
--- /dev/null
+++ b/third_party/protobuf/3.6.0/cmake/protoc.cmake
@@ -0,0 +1,7 @@
+set(protoc_files
+ ${protobuf_source_dir}/src/google/protobuf/compiler/main.cc
+)
+
+add_executable(protoc ${protoc_files})
+target_link_libraries(protoc libprotobuf libprotoc)
+add_executable(protobuf::protoc ALIAS protoc)