blob: 70850925f475d581a25550dbbd8d071b1d81ffa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
include(opentrack-opencv)
find_package(OpenCV QUIET COMPONENTS imgproc core imgcodecs calib3d)
find_package(OpenMP QUIET) # Used to control number of onnx threads.
find_package(ONNXRuntime QUIET)
if(OpenCV_FOUND AND ONNXRuntime_FOUND AND OpenMP_FOUND)
otr_module(tracker-neuralnet)
target_link_libraries(${self}
opentrack-cv
onnxruntime::onnxruntime
${OpenCV_LIBS}
OpenMP::OpenMP_C
)
install(
FILES "models/head-localizer.onnx"
"models/head-pose.onnx"
DESTINATION "${opentrack-libexec}/models"
PERMISSIONS ${opentrack-perms-file}
)
otr_install_lib("${ONNXRuntime_RUNTIME}" ".")
endif()
|