From 549a940686a4a478c47df495b92f4e7c1d4ee47c Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 10 May 2024 15:39:37 +0800 Subject: [PATCH] =?UTF-8?q?2024.5.10-=E5=8E=BB=E9=99=A4ITN=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 ++- post_processor/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 232afb5..395a66e 100644 --- a/CMakeLists.txt +++ b/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 diff --git a/post_processor/CMakeLists.txt b/post_processor/CMakeLists.txt index 4b0e613..3fff4ca 100644 --- a/post_processor/CMakeLists.txt +++ b/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)