1234567891011121314151617181920212223242526272829 |
- unset(extra_generator_args)
- if(TARGET Qt::Qml)
- list(APPEND extra_generator_args QML)
- endif()
- qt_internal_add_test(tst_protobuf_extranamespace
- SOURCES
- extranamespace.cpp
- # TODO Qt6: Missing source files?
- # serializationtest.cpp
- # deserializationtest.cpp
- INCLUDE_DIRECTORIES
- ../../shared
- LIBRARIES
- Qt::Test
- Qt::Protobuf
- )
- qt6_protobuf_generate(TARGET tst_protobuf_extranamespace
- OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated"
- PROTO_FILES proto/extranamespace.proto
- EXTRA_NAMESPACE "MyTestNamespace"
- FIELDENUM
- ${extra_generator_args}
- )
- if(TARGET Qt::QuickTest)
- add_subdirectory(qml)
- endif()
|