This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex_bi_series-sherpa-onnx/sherpa-onnx/csrc/CMakeLists.txt
2023-02-19 19:36:03 +08:00

30 lines
706 B
CMake

include_directories(${CMAKE_SOURCE_DIR})
add_library(sherpa-onnx-core
features.cc
online-lstm-transducer-model.cc
online-recognizer.cc
online-stream.cc
online-transducer-greedy-search-decoder.cc
online-transducer-model-config.cc
online-transducer-model.cc
onnx-utils.cc
symbol-table.cc
wave-reader.cc
)
target_link_libraries(sherpa-onnx-core
onnxruntime
kaldi-native-fbank-core
)
add_executable(sherpa-onnx sherpa-onnx.cc)
target_link_libraries(sherpa-onnx sherpa-onnx-core)
if(NOT WIN32)
target_link_libraries(sherpa-onnx "-Wl,-rpath,${SHERPA_ONNX_RPATH_ORIGIN}/../lib")
endif()
install(TARGETS sherpa-onnx-core DESTINATION lib)
install(TARGETS sherpa-onnx DESTINATION bin)