Skip to content

Commit

Permalink
chore: add rpath for loading onnxruntime libraries. :rockets:
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker2770 committed Nov 23, 2023
1 parent 0c22e26 commit 9cc0b94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ target("Z2I")
set_kind("static")
add_files("src/*.cpp")
add_packages("onnxruntime")
add_rpathdirs("@loader_path", "@loader_path/lib", "@executable_path", "@executable_path/lib")

target("pbrain-Z2I")
set_kind("binary")
add_files("src/pbrain-Z2I/*.cpp")
add_deps("Z2I")
add_packages("onnxruntime")
add_rpathdirs("@loader_path", "@loader_path/lib", "@executable_path", "@executable_path/lib")
after_build(function (target)
os.cp("$(scriptdir)/config/*.toml", target:targetdir())
end)
Expand All @@ -23,3 +25,4 @@ target("train_and_eval")
add_files("src/train_and_eval/*.cpp")
add_deps("Z2I")
add_packages("onnxruntime")
add_rpathdirs("@loader_path", "@loader_path/lib", "@executable_path", "@executable_path/lib")

0 comments on commit 9cc0b94

Please sign in to comment.