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)