@@ -9,8 +9,8 @@ function(download_kaldi_native_fbank)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
set(kaldi_native_fbank_URL "https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.4.tar.gz")
|
||||
set(kaldi_native_fbank_HASH "SHA256=771e08cb7edf512c828f4577d0d071a7993991d7e5415b11a843975dcf3e4d2d")
|
||||
set(kaldi_native_fbank_URL "https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.5.tar.gz")
|
||||
set(kaldi_native_fbank_HASH "SHA256=632c68adf8f6de831198a2a0e4c1920b31d5a1de263dcac5105be9da99f40bd5")
|
||||
|
||||
set(KALDI_NATIVE_FBANK_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
set(KALDI_NATIVE_FBANK_BUILD_PYTHON OFF CACHE BOOL "" FORCE)
|
||||
@@ -36,4 +36,4 @@ function(download_kaldi_native_fbank)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
download_kaldi_native_fbank()
|
||||
download_kaldi_native_fbank()
|
||||
|
||||
@@ -31,6 +31,15 @@ function(download_onnxruntime)
|
||||
#
|
||||
# ./include
|
||||
# It contains all the needed header files
|
||||
elseif(WIN32)
|
||||
set(onnxruntime_URL "https://github.com/microsoft/onnxruntime/releases/download/v1.12.1/onnxruntime-win-x64-1.12.1.zip")
|
||||
set(onnxruntime_HASH "SHA256=c69650ba14aeae5903b05256a82e77164fff2de992072bc695a3838c1830b85a")
|
||||
# After downloading, it contains:
|
||||
# ./lib/onnxruntime.{dll,lib,pdb}
|
||||
# ./lib/onnxruntime_providers_shared.{dll,lib,pdb}
|
||||
#
|
||||
# ./include
|
||||
# It contains all the needed header files
|
||||
else()
|
||||
message(FATAL_ERROR "Only support Linux and macOS at present. Will support other OSes later")
|
||||
endif()
|
||||
@@ -59,6 +68,17 @@ function(download_onnxruntime)
|
||||
IMPORTED_LOCATION ${location_onnxruntime}
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${onnxruntime_SOURCE_DIR}/include"
|
||||
)
|
||||
if(WIN32)
|
||||
set_property(TARGET onnxruntime
|
||||
PROPERTY
|
||||
IMPORTED_IMPLIB "${onnxruntime_SOURCE_DIR}/lib/onnxruntime.lib"
|
||||
)
|
||||
|
||||
file(COPY ${onnxruntime_SOURCE_DIR}/lib/onnxruntime.dll
|
||||
DESTINATION
|
||||
${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
download_onnxruntime()
|
||||
|
||||
Reference in New Issue
Block a user