CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627
  1. qt_protobuf_internal_find_dependencies()
  2. # clients
  3. qt_protobuf_internal_add_test(TARGET qtgrpc_test
  4. SOURCES clienttest.cpp QML)
  5. qt_protobuf_internal_add_target_windeployqt(TARGET qtgrpc_test
  6. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  7. qt_protobuf_internal_add_test(TARGET qtgrpc_secure_test
  8. SOURCES sslclienttest.cpp)
  9. qt_protobuf_internal_add_target_windeployqt(TARGET qtgrpc_secure_test
  10. QML_DIR ${CMAKE_CURRENT_SOURCE_DIR})
  11. # servers
  12. add_subdirectory(echoserver)
  13. add_subdirectory(secureechoserver)
  14. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testfile ${CMAKE_CURRENT_BINARY_DIR}/testfile COPYONLY)
  15. configure_file(${TEST_DRIVER_NAME}.in ${TEST_DRIVER_NAME} @ONLY)
  16. add_test(NAME qtgrpc_echo_test
  17. COMMAND ${TEST_DRIVER_NAME} $<TARGET_FILE:qtgrpc_test> $<TARGET_FILE:echoserver> $<TARGET_FILE_NAME:qtgrpc_test> $<TARGET_FILE_NAME:echoserver>
  18. )
  19. add_test(NAME qtgrpc_secure_test
  20. COMMAND ${TEST_DRIVER_NAME} $<TARGET_FILE:qtgrpc_secure_test> $<TARGET_FILE:secureechoserver> $<TARGET_FILE_NAME:qtgrpc_secure_test> $<TARGET_FILE_NAME:secureechoserver>
  21. )