Refactor onnxruntime.cmake (#220)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user