1set(protoc_files 2 ${protobuf_SOURCE_DIR}/src/google/protobuf/compiler/main.cc 3) 4 5add_executable(protoc ${protoc_files} ${protobuf_version_rc_file}) 6target_link_libraries(protoc 7 libprotoc 8 libprotobuf 9 ${protobuf_ABSL_USED_TARGETS} 10) 11add_executable(protobuf::protoc ALIAS protoc) 12 13set_target_properties(protoc PROPERTIES 14 VERSION ${protobuf_VERSION}) 15