Browse Source

2024.5.10-去除ITN的依赖构建

master
Administrator 1 year ago
parent
commit
549a940686
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      CMakeLists.txt
  2. +1
    -0
      post_processor/CMakeLists.txt

+ 2
- 1
CMakeLists.txt

@ -11,6 +11,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pthread -fPIC")
set(LIB_BASE_DIR /root/projects/temp_xiaoke/asr_runtime/lib_files)
option(GRPC "whether to build with gRPC" ON)
option(ONNX "whether to build with ONNX" ON)
option(ITN "whether to build with ITN" ON)
option(REBUILD "是否重新构筑项目依赖" OFF)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake-linux)
# Model Option
@ -20,7 +21,7 @@ endif()
include(openfst)
#wenet
include(wetextprocessing)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/kaldi

+ 1
- 0
post_processor/CMakeLists.txt

@ -2,6 +2,7 @@ add_library(post_processor STATIC
post_processor.cc
)
if(ITN)
include(wetextprocessing)
target_link_libraries(post_processor PUBLIC utils wetext_processor wetext_utils)
else()
target_link_libraries(post_processor PUBLIC utils)

Loading…
Cancel
Save