| | |
| | | cmake_minimum_required(VERSION 3.10) |
| | | cmake_minimum_required(VERSION 3.16) |
| | | |
| | | project(FunASRWebscoket) |
| | | |
| | |
| | | |
| | | # Include generated *.pb.h files |
| | | link_directories(${ONNXRUNTIME_DIR}/lib) |
| | | link_directories(${FFMPEG_DIR}/lib) |
| | | |
| | | include_directories(${PROJECT_SOURCE_DIR}/../onnxruntime/include/) |
| | | include_directories(${PROJECT_SOURCE_DIR}/../onnxruntime/third_party/yaml-cpp/include/) |
| | |
| | | # install openssl first apt-get install libssl-dev |
| | | find_package(OpenSSL REQUIRED) |
| | | |
| | | add_executable(funasr-ws-server "funasr-ws-server.cpp" "websocket-server.cpp") |
| | | add_executable(funasr-ws-client "funasr-ws-client.cpp") |
| | | add_executable(funasr-wss-server "funasr-wss-server.cpp" "websocket-server.cpp") |
| | | add_executable(funasr-wss-server-2pass "funasr-wss-server-2pass.cpp" "websocket-server-2pass.cpp") |
| | | add_executable(funasr-wss-client "funasr-wss-client.cpp") |
| | | add_executable(funasr-wss-client-2pass "funasr-wss-client-2pass.cpp") |
| | | |
| | | target_link_libraries(funasr-ws-client PUBLIC funasr ssl crypto) |
| | | target_link_libraries(funasr-ws-server PUBLIC funasr ssl crypto) |
| | | target_link_libraries(funasr-wss-client PUBLIC funasr ssl crypto) |
| | | target_link_libraries(funasr-wss-client-2pass PUBLIC funasr ssl crypto) |
| | | target_link_libraries(funasr-wss-server PUBLIC funasr ssl crypto) |
| | | target_link_libraries(funasr-wss-server-2pass PUBLIC funasr ssl crypto) |