|
|
@ -1,8 +1,9 @@ |
|
|
|
FetchContent_Declare(onnxruntime |
|
|
|
SOURCE_DIR ${LIB_BASE_DIR}/onnxruntime-src) |
|
|
|
FetchContent_MakeAvailable(onnxruntime) |
|
|
|
|
|
|
|
set(onnxruntime_SOURCE_DIR ${LIB_BASE_DIR}/onnxruntime-src) |
|
|
|
|
|
|
|
include_directories(${onnxruntime_SOURCE_DIR}/include) |
|
|
|
link_directories(${onnxruntime_SOURCE_DIR}/lib) |
|
|
|
|
|
|
|
list(APPEND third_party_libraries onnxruntime) |
|
|
|
list(APPEND third_party_libraries onnxruntime) |
|
|
|
|
|
|
|
add_definitions(-DUSE_ONNX) |