Skip to content

Commit e2e5c82

Browse files
author
Gin
committed
add onnx to macOS build. Still need Linux setting
1 parent 3438620 commit e2e5c82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,8 +2396,12 @@ if (MSVC)
23962396
# target_compile_options(SerialPrograms PRIVATE /arch:AVX512 /DPA_Arch_x64_AVX512)
23972397
# target_compile_options(SerialPrograms PRIVATE /arch:AVX512 /DPA_Arch_x64_AVX512GF)
23982398
else()
2399-
# Find OpenCV
2399+
# Find ONNX Runtime
2400+
# Run `brew install onnxruntime` first
2401+
target_include_directories(SerialPrograms PRIVATE /opt/homebrew/include/onnxruntime)
2402+
target_link_libraries(SerialPrograms PRIVATE /opt/homebrew/lib/libonnxruntime.dylib)
24002403

2404+
# Find OpenCV
24012405
# set(OPENCV_DIR, "/usr/local/opt/opencv/lib/cmake/opencv4")
24022406
find_package(OpenCV REQUIRED HINTS "/usr/local/opt/opencv/lib/cmake/opencv4/")
24032407
# set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/opencv/lib/pkgconfig")

0 commit comments

Comments
 (0)