Refactor onnxruntime.cmake (#220)

This commit is contained in:
Fangjun Kuang
2023-07-18 15:44:54 +08:00
committed by GitHub
parent bd74e1c4e5
commit 6125d9e063
17 changed files with 961 additions and 248 deletions

View File

@@ -31,7 +31,7 @@ extern "C" {
#define SHERPA_ONNX_IMPORT
#endif
#else // WIN32
#define SHERPA_ONNX_EXPORT __attribute__((__visibility__("default")))
#define SHERPA_ONNX_EXPORT
#define SHERPA_ONNX_IMPORT SHERPA_ONNX_EXPORT
#endif

View File

@@ -125,6 +125,10 @@ else()
install(TARGETS sherpa-onnx-core DESTINATION lib)
endif()
if(WIN32 AND BUILD_SHARED_LIBS)
install(TARGETS sherpa-onnx-core DESTINATION bin)
endif()
install(
TARGETS
sherpa-onnx