CMakeLists.txt 967 B

123456789101112131415161718192021222324252627282930313233
  1. include(QtProtobufTestHelpers)
  2. add_subdirectory("test_protobuf")
  3. if(TARGET ${QT_VERSIONED_PREFIX}::QuickTest)
  4. add_subdirectory("test_qml")
  5. endif()
  6. add_subdirectory("test_protobuf_multifile")
  7. add_subdirectory("test_qprotobuf_serializer_plugin")
  8. add_subdirectory("test_extra_namespace")
  9. add_subdirectory("test_extra_namespace_qml")
  10. if(TARGET ${QT_PROTOBUF_NAMESPACE}::ProtobufWellKnownTypes)
  11. add_subdirectory("test_wellknowntypes")
  12. endif()
  13. if(TARGET ${QT_PROTOBUF_NAMESPACE}::ProtobufQtTypes)
  14. add_subdirectory("test_qttypes")
  15. endif()
  16. if(WrapgRPC_FOUND AND TARGET ${QT_PROTOBUF_NAMESPACE}::Grpc)
  17. if(UNIX)
  18. set(TEST_DRIVER_NAME "test_driver.sh")
  19. elseif(WIN32)
  20. set(TEST_DRIVER_NAME "test_driver.bat")
  21. endif()
  22. add_subdirectory("test_grpc")
  23. if(TARGET ${QT_VERSIONED_PREFIX}::QuickTest)
  24. add_subdirectory("test_grpc_qml")
  25. endif()
  26. else()
  27. message(WARNING "gRPC not found: some tests cannot be built.")
  28. endif()