root
2023-04-28 ed25726d2992f8a395a8d4ed9bd5e85d231c471e
funasr/runtime/onnxruntime/src/CMakeLists.txt
@@ -8,7 +8,7 @@
add_library(funasr ${files})
if(WIN32)
    set(EXTRA_LIBS pthread yaml-cpp csrc)
    set(EXTRA_LIBS pthread yaml-cpp csrc glog)
    if(CMAKE_CL_64)
        target_link_directories(funasr PUBLIC ${CMAKE_SOURCE_DIR}/win/lib/x64)
    else()
@@ -18,17 +18,21 @@
    
    target_compile_definitions(funasr PUBLIC -D_FUNASR_API_EXPORT)
else()
    set(EXTRA_LIBS pthread yaml-cpp csrc)
    target_include_directories(funasr PUBLIC)
    target_link_directories(funasr PUBLIC)
    set(EXTRA_LIBS pthread yaml-cpp csrc glog )
    include_directories(${ONNXRUNTIME_DIR}/include)
endif()
include_directories(${CMAKE_SOURCE_DIR}/include)
target_link_libraries(funasr PUBLIC onnxruntime ${EXTRA_LIBS})
if(ENABLE_WEBSOCKET)
  add_executable(websocketmain "websocketmain.cpp")
  add_executable(websocketclient "websocketclient.cpp")
  target_link_libraries(websocketclient PUBLIC funasr)
  target_link_libraries(websocketmain PUBLIC funasr)
endif()
add_executable(funasr-onnx-offline "funasr-onnx-offline.cpp")
add_executable(funasr-onnx-offline-rtf "funasr-onnx-offline-rtf.cpp")
target_link_libraries(funasr-onnx-offline PUBLIC funasr)