mirror of
https://github.com/slackr31337/wyoming-piper-gpu.git
synced 2026-10-18 13:20:20 +02:00
Update piper_CMakeLists.txt
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user