Support windows (#17)

* add onnxruntime for windows
This commit is contained in:
Fangjun Kuang
2022-10-13 17:30:30 +08:00
committed by GitHub
parent c70f5625f4
commit 4614d02d6d
7 changed files with 280 additions and 148 deletions

View File

@@ -21,10 +21,6 @@ set(CMAKE_INSTALL_RPATH ${SHERPA_ONNX_RPATH_ORIGIN})
set(CMAKE_BUILD_RPATH ${SHERPA_ONNX_RPATH_ORIGIN})
set(BUILD_SHARED_LIBS ON)
if(WIN32)
message(STATUS "Set BUILD_SHARED_LIBS to OFF for Windows")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
endif()
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No CMAKE_BUILD_TYPE given, default to Release")