You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
525 B

  1. set(ONNX_VERSION "1.12.0")
  2. set(ONNX_URL "https://github.com/microsoft/onnxruntime/releases/download/v${ONNX_VERSION}/onnxruntime-linux-x64-${ONNX_VERSION}.tgz")
  3. set(URL_HASH "SHA256=5d503ce8540358b59be26c675e42081be14a3e833a5301926f555451046929c5")
  4. FetchContent_Declare(onnxruntime
  5. SOURCE_DIR ${LIB_BASE_DIR}/onnxruntime-src)
  6. FetchContent_MakeAvailable(onnxruntime)
  7. include_directories(${onnxruntime_SOURCE_DIR}/include)
  8. link_directories(${onnxruntime_SOURCE_DIR}/lib)
  9. list(APPEND third_party_libraries onnxruntime)