CMakeLists.txt 780 B

1234567891011121314151617181920212223242526272829
  1. configure_file(test_driver.sh.in test_driver.sh @ONLY)
  2. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testfile ${CMAKE_CURRENT_BINARY_DIR}/testfile COPYONLY)
  3. include(${CMAKE_SOURCE_DIR}/cmake/QtProtobufCommon.cmake)
  4. set(GENERATED_HEADERS
  5. simplestringmessage.h
  6. testserviceclient.h
  7. blobmessage.h
  8. # testserviceserver.h
  9. )
  10. # clients
  11. add_test_target(TARGET qtgrpc_test
  12. GENERATED_HEADERS ${GENERATED_HEADERS}
  13. SOURCES clienttest.cpp)
  14. add_test_target(TARGET qtgrpc_secure_test
  15. GENERATED_HEADERS ${GENERATED_HEADERS}
  16. SOURCES sslclienttest.cpp)
  17. # servers
  18. add_subdirectory(echoserver)
  19. add_subdirectory(secureechoserver)
  20. add_test(NAME qtgrpc_echo_test
  21. COMMAND test_driver.sh ./tests/test_grpc/qtgrpc_test ./tests/test_grpc/echoserver/echoserver
  22. )