CMakeLists.txt 559 B

1234567891011121314151617181920212223
  1. unset(extra_generator_args)
  2. if(TARGET Qt::Qml)
  3. list(APPEND extra_generator_args QML)
  4. endif()
  5. qt_internal_add_test(tst_protobuf_externalpackage
  6. SOURCES
  7. externalpackage.cpp
  8. INCLUDE_DIRECTORIES
  9. ../../shared
  10. LIBRARIES
  11. Qt::Test
  12. Qt::Protobuf
  13. )
  14. qt6_protobuf_generate(TARGET tst_protobuf_externalpackage
  15. PROTO_FILES
  16. proto/externalpackage.proto
  17. proto/externalpackageconsumer.proto
  18. FIELDENUM
  19. ${extra_generator_args}
  20. OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated"
  21. )