Feng Xiao | 4333edb | 2015-05-31 02:28:34 -0700 | [diff] [blame] | 1 | set(protoc_files |
Arfrever Frehtes Taifersar Arahesis | 4268662 | 2022-03-08 00:00:00 +0000 | [diff] [blame] | 2 | ${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/main.cc |
Feng Xiao | 4333edb | 2015-05-31 02:28:34 -0700 | [diff] [blame] | 3 | ) |
| 4 | |
David L. Jones | c4ddd84 | 2022-04-28 15:17:51 -0700 | [diff] [blame] | 5 | add_executable(protoc ${protoc_files} ${protobuf_version_rc_file}) |
mkruskal-google | e9246cd | 2022-04-17 19:28:01 -0700 | [diff] [blame] | 6 | target_link_libraries(protoc |
| 7 | libprotoc |
| 8 | libprotobuf |
Mike Kruskal | cac9765 | 2022-08-12 16:41:00 -0700 | [diff] [blame] | 9 | ${protobuf_ABSL_USED_TARGETS} |
mkruskal-google | e9246cd | 2022-04-17 19:28:01 -0700 | [diff] [blame] | 10 | ) |
Corentin Le Molgat | f7a0584 | 2018-01-29 15:13:23 +0100 | [diff] [blame] | 11 | add_executable(protobuf::protoc ALIAS protoc) |
Jozef Izso | 3415201 | 2018-04-27 23:44:38 +0200 | [diff] [blame] | 12 | |
| 13 | set_target_properties(protoc PROPERTIES |
| 14 | VERSION ${protobuf_VERSION}) |