unset(extra_generator_args) if(TARGET Qt::Qml) list(APPEND extra_generator_args QML) endif() qt_internal_add_test(tst_protobuf_syntax SOURCES syntaxtest.cpp INCLUDE_DIRECTORIES ../../shared LIBRARIES Qt::Test Qt::Protobuf ) qt6_protobuf_generate(TARGET tst_protobuf_syntax PROTO_FILES syntax.proto FIELDENUM ${extra_generator_args} OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated" ) if(TARGET Qt::QuickTest) add_subdirectory(qml) endif()