2015-05-31 02:28:34 -07:00
|
|
|
set(protoc_files
|
2022-03-08 00:00:00 +00:00
|
|
|
${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/main.cc
|
2015-05-31 02:28:34 -07:00
|
|
|
)
|
|
|
|
|
|
2022-04-28 15:17:51 -07:00
|
|
|
add_executable(protoc ${protoc_files} ${protobuf_version_rc_file})
|
2022-04-17 19:28:01 -07:00
|
|
|
target_link_libraries(protoc
|
|
|
|
|
libprotoc
|
|
|
|
|
libprotobuf
|
2022-08-12 16:41:00 -07:00
|
|
|
${protobuf_ABSL_USED_TARGETS}
|
2022-04-17 19:28:01 -07:00
|
|
|
)
|
2018-01-29 15:13:23 +01:00
|
|
|
add_executable(protobuf::protoc ALIAS protoc)
|
2018-04-27 23:44:38 +02:00
|
|
|
|
|
|
|
|
set_target_properties(protoc PROPERTIES
|
|
|
|
|
VERSION ${protobuf_VERSION})
|