You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. add_executable(decoder_main decoder_main.cc)
  2. target_link_libraries(decoder_main PUBLIC decoder)
  3. if(IPEX)
  4. target_link_libraries(decoder_main PUBLIC "${TORCH_IPEX_LIBRARIES}")
  5. endif()
  6. message(STATUS "gflags_LIBRARIES: ${gflags_LIBRARIES}")
  7. add_executable(label_checker_main label_checker_main.cc)
  8. target_link_libraries(label_checker_main PUBLIC decoder gflags_nothreads_static)
  9. if(TORCH)
  10. add_executable(api_main api_main.cc)
  11. target_link_libraries(api_main PUBLIC wenet_api)
  12. endif()
  13. if(WEBSOCKET)
  14. add_executable(websocket_client_main websocket_client_main.cc)
  15. target_link_libraries(websocket_client_main PUBLIC websocket)
  16. add_executable(websocket_server_main websocket_server_main.cc)
  17. target_link_libraries(websocket_server_main PUBLIC websocket)
  18. endif()
  19. if(GRPC)
  20. add_executable(grpc_server_main grpc_server_main.cc)
  21. target_link_libraries(grpc_server_main PUBLIC wenet_grpc)
  22. add_executable(grpc_client_main grpc_client_main.cc)
  23. target_link_libraries(grpc_client_main PUBLIC wenet_grpc)
  24. endif()
  25. if(HTTP)
  26. add_executable(http_client_main http_client_main.cc)
  27. target_link_libraries(http_client_main PUBLIC http)
  28. add_executable(http_server_main http_server_main.cc)
  29. target_link_libraries(http_server_main PUBLIC http)
  30. endif()