CMakeLists.txt 691 B

123456789101112131415161718192021222324252627
  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(TARGET qtgrpc_test)
  5. set(GENERATED_HEADERS
  6. simplestringmessage.h
  7. testserviceclient.h
  8. blobmessage.h
  9. # testserviceserver.h
  10. )
  11. file(GLOB SOURCES main.cpp
  12. # servertest.cpp
  13. clienttest.cpp)
  14. add_test_target(TARGET ${TARGET}
  15. GENERATED_HEADERS ${GENERATED_HEADERS}
  16. SOURCES ${SOURCES})
  17. add_subdirectory(echoserver)
  18. add_test(NAME qtgrpc_echo_test
  19. COMMAND test_driver.sh ./tests/test_grpc/qtgrpc_test ./tests/test_grpc/echoserver/echoserver
  20. )