Skip to content

Commit

Permalink
add library
Browse files Browse the repository at this point in the history
  • Loading branch information
20DM committed Sep 12, 2024
1 parent 5c32818 commit 7ead51b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake_files/LookUpONNXRT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ if(NOT ${onnxruntime_FOUND})
set(onnxruntime_INCLUDE_DIR "${onnxruntime_DIR}/include")
set(onnxruntime_LIBRARY_DIR "${onnxruntime_DIR}/lib")
set(onnxruntime_LIBRARIES onnxruntime::onnxruntime)
add_library(${onnxruntime_LIBRARIES} SHARED IMPORTED)
set_target_properties(${onnxruntime_LIBRARIES} PROPERTIES IMPORTED_LOCATION ${onnxruntime_DIR}/libonnxruntime.so)
message(STATUS "ORT-INCDIR=${onnxruntime_INCLUDE_DIR}")
message(STATUS "ORT-LIBDIR=${onnxruntime_LIBRARY_DIR}")
message(STATUS "ORT-LIB=${onnxruntime_LIBRARIES}")
Expand Down

0 comments on commit 7ead51b

Please sign in to comment.