unset(extra_generator_args) if(TARGET Qt::Qml) list(APPEND extra_generator_args QML) endif() qt_internal_add_test(tst_protobuf_externalpackage SOURCES externalpackage.cpp INCLUDE_DIRECTORIES ../../shared LIBRARIES Qt::Test Qt::Protobuf ) qt6_protobuf_generate(TARGET tst_protobuf_externalpackage PROTO_FILES proto/externalpackage.proto proto/externalpackageconsumer.proto FIELDENUM ${extra_generator_args} OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated" )