Update piper_CMakeLists.txt

This commit is contained in:
Robert Dunmire III 2025-01-12 11:44:24 -05:00
parent 889e4f6251
commit ef09f452f7
1 changed files with 15 additions and 15 deletions

View File

@ -41,6 +41,21 @@ if(NOT DEFINED FMT_DIR)
add_dependencies(test_piper fmt_external)
endif()
# ---- piper-phonemize ---
if(NOT DEFINED PIPER_PHONEMIZE_DIR)
set(PIPER_PHONEMIZE_DIR "${CMAKE_CURRENT_BINARY_DIR}/pi")
set(ONNXRUNTIME_VERSION "$ENV{ONNXRUNTIME_VERSION}")
ExternalProject_Add(
piper_phonemize_external
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/p"
URL "https://github.com/rhasspy/piper-phonemize/archive/refs/heads/master.zip"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${PIPER_PHONEMIZE_DIR} -DONNXRUNTIME_VERSION=${ONNXRUNTIME_VERSION}
)
add_dependencies(piper piper_phonemize_external)
add_dependencies(test_piper piper_phonemize_external)
endif()
# ---- spdlog ---
if(NOT DEFINED SPDLOG_DIR)
@ -56,21 +71,6 @@ if(NOT DEFINED SPDLOG_DIR)
add_dependencies(test_piper spdlog_external)
endif()
# ---- piper-phonemize ---
if(NOT DEFINED PIPER_PHONEMIZE_DIR)
set(PIPER_PHONEMIZE_DIR "${CMAKE_CURRENT_BINARY_DIR}/pi")
set(ONNXRUNTIME_VERSION "$ENV{ONNXRUNTIME_VERSION}")
ExternalProject_Add(
piper_phonemize_external
PREFIX "${CMAKE_CURRENT_BINARY_DIR}/p"
URL "https://github.com/rhasspy/piper-phonemize/archive/refs/heads/master.zip"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${PIPER_PHONEMIZE_DIR}
)
add_dependencies(piper piper_phonemize_external)
add_dependencies(test_piper piper_phonemize_external)
endif()
# ---- Declare executable ----
if((NOT MSVC) AND (NOT APPLE))