blob: 385a7a3f3989ff3ba75ef73b787fe3e6db10033e [file] [log] [blame]
Feng Xiao4333edb2015-05-31 02:28:34 -07001set(protoc_files
Arfrever Frehtes Taifersar Arahesis42686622022-03-08 00:00:00 +00002 ${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/main.cc
Feng Xiao4333edb2015-05-31 02:28:34 -07003)
4
David L. Jonesc4ddd842022-04-28 15:17:51 -07005add_executable(protoc ${protoc_files} ${protobuf_version_rc_file})
mkruskal-googlee9246cd2022-04-17 19:28:01 -07006target_link_libraries(protoc
7 libprotoc
8 libprotobuf
Mike Kruskalcac97652022-08-12 16:41:00 -07009 ${protobuf_ABSL_USED_TARGETS}
mkruskal-googlee9246cd2022-04-17 19:28:01 -070010)
Corentin Le Molgatf7a05842018-01-29 15:13:23 +010011add_executable(protobuf::protoc ALIAS protoc)
Jozef Izso34152012018-04-27 23:44:38 +020012
13set_target_properties(protoc PROPERTIES
14 VERSION ${protobuf_VERSION})