snipplets.dev/projects/OpenVINO/C++/xmake.lua

27 lines
567 B
Lua
Raw Permalink Normal View History

2024-08-24 15:24:01 +03:00
set_project("inf")
set_languages("cxx17")
add_rules("mode.debug", "mode.release")
if is_mode("debug") then
set_symbols("debug")
set_optimize("none")
end
add_includedirs(
"/opt/opencv-4.8.0/include/opencv4/" -- OpenCV
)
add_linkdirs(
"/opt/opencv-4.8.0/lib/" -- OpenCV
)
target("inf")
set_kind("binary")
add_syslinks(
"openvino",
"opencv_core", "opencv_imgproc", "opencv_highgui",
"opencv_imgcodecs", "opencv_dnn"
)
add_files("i.cpp", "infer.cc")
add_runenvs("LD_LIBRARY_PATH", "/opt/opencv-4.8.0/lib/")