|
|
@ -1,7 +1,7 @@ |
|
|
|
# We can't build glog with gflags, unless gflags is pre-installed. |
|
|
|
# If build glog with pre-installed gflags, there will be conflict. |
|
|
|
|
|
|
|
|
|
|
|
set(openfst_ROOT ${LIB_BASE_DIR}/openfst-src) |
|
|
|
set(openfst_BUILD "${LIB_BASE_DIR}/openfst-build") |
|
|
|
if(NOT EXISTS ${openfst_BUILD}) |
|
|
|
# install openfst |
|
|
@ -48,11 +48,10 @@ set(HAVE_LOOKAHEAD OFF CACHE BOOL "Build lookahead" FORCE) |
|
|
|
set(HAVE_NGRAM OFF CACHE BOOL "Build ngram" FORCE) |
|
|
|
set(HAVE_SPECIAL OFF CACHE BOOL "Build special" FORCE) |
|
|
|
|
|
|
|
FetchContent_Declare(openfst |
|
|
|
SOURCE_DIR ${LIB_BASE_DIR}/openfst-src) |
|
|
|
FetchContent_MakeAvailable(openfst) |
|
|
|
find_package(openfst REQUIRED CONFIG HINTS ${openfst_ROOT}) |
|
|
|
message(STATUS "${BoldGreen}Find Package openfst: ${openfst_FOUND}${ColourReset}") |
|
|
|
|
|
|
|
include_directories(${LIB_BASE_DIR}/openfst-src/src/include) |
|
|
|
include_directories(${openfst_ROOT}/src/include) |
|
|
|
|
|
|
|
message(STATUS "${BoldGreen}openfst_BINARY_DIR: ${openfst_BINARY_DIR}${ColourReset}") |
|
|
|
|