find_package(Protobuf) qt_get_tool_target_name(target_name qtprotobufgen) qt_internal_add_tool(${target_name} TOOLS_TARGET Protobuf SOURCES utils.h descriptorprinterbase.h main.cpp generatorcommon.cpp generatorcommon.h generatoroptions.cpp generatoroptions.h templates.cpp templates.h generatorbase.cpp generatorbase.h singlefilegenerator.cpp singlefilegenerator.h multifilegenerator.cpp multifilegenerator.h baseprinter.cpp baseprinter.h messagedeclarationprinter.cpp messagedeclarationprinter.h messagedefinitionprinter.cpp messagedefinitionprinter.h enumdeclarationprinter.cpp enumdeclarationprinter.h enumdefinitionprinter.cpp enumdefinitionprinter.h servicedeclarationprinterbase.cpp servicedeclarationprinterbase.h clientdeclarationprinter.cpp clientdeclarationprinter.h clientdefinitionprinter.cpp clientdefinitionprinter.h serverdeclarationprinter.cpp serverdeclarationprinter.h LIBRARIES protobuf::libprotobuf protobuf::libprotoc )