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) 10add_executable(protobuf::protoc ALIAS protoc) 11 12set_target_properties(protoc PROPERTIES 13 VERSION ${protobuf_VERSION}) 14