diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-05-31 02:28:34 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-05-31 02:28:34 -0700 |
commit | 4333edb34048d29a410cc247ff7ffbad8145132f (patch) | |
tree | 7bd789d4fb99e41c2ab7304471358586a41bf742 /cmake/protoc.cmake | |
parent | 93d6838ab50fc004ef2a854fca59850665b5fb9d (diff) | |
download | protobuf-4333edb34048d29a410cc247ff7ffbad8145132f.tar.gz protobuf-4333edb34048d29a410cc247ff7ffbad8145132f.tar.bz2 protobuf-4333edb34048d29a410cc247ff7ffbad8145132f.zip |
Add cmake support.
Diffstat (limited to 'cmake/protoc.cmake')
-rw-r--r-- | cmake/protoc.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake new file mode 100644 index 00000000..4f07c389 --- /dev/null +++ b/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) |