CMakeLists.txt 881 B

12345678910111213141516171819202122232425262728293031
  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. if(TARGET ${QT_PROTOBUF_NAMESPACE}::ProtobufWellKnownTypes)
  9. add_subdirectory("test_wellknowntypes")
  10. endif()
  11. if(TARGET ${QT_PROTOBUF_NAMESPACE}::ProtobufQtTypes)
  12. add_subdirectory("test_qttypes")
  13. endif()
  14. if(WrapgRPC_FOUND AND TARGET ${QT_PROTOBUF_NAMESPACE}::Grpc)
  15. if(UNIX)
  16. set(TEST_DRIVER_NAME "test_driver.sh")
  17. elseif(WIN32)
  18. set(TEST_DRIVER_NAME "test_driver.bat")
  19. endif()
  20. add_subdirectory("test_grpc")
  21. if(TARGET ${QT_VERSIONED_PREFIX}::QuickTest)
  22. add_subdirectory("test_grpc_qml")
  23. endif()
  24. else()
  25. message(WARNING "gRPC not found: some tests cannot be built.")
  26. endif()