t/hand: Add meson build for mercury

This commit is contained in:
Christoph Haag 2022-03-25 14:25:35 +01:00 committed by Jakob Bornecrantz
parent 02e5e7be4a
commit 6c9f1f4083
3 changed files with 30 additions and 2 deletions

View file

@ -93,7 +93,7 @@ if 'handtracking' in drivers
), ),
include_directories: [xrt_include, cjson_include], include_directories: [xrt_include, cjson_include],
dependencies: [aux], dependencies: [aux],
link_with: [lib_t_hand_async, lib_t_ht_old_rgb], link_with: [lib_t_hand_async, lib_t_ht_old_rgb, t_ht_mercury],
# build_by_default: 'handtracking' in drivers, # build_by_default: 'handtracking' in drivers,
) )
endif endif

View file

@ -0,0 +1,28 @@
# Copyright 2022, Collabora, Ltd.
# SPDX-License-Identifier: BSL-1.0
# Mercury hand tracking library!
t_ht_mercury_kine = static_library(
't_ht_mercury_kine',
files(
'kine/kinematic_interface.hpp',
'kine/kinematic_main.cpp'
),
include_directories: [xrt_include, cjson_include],
dependencies: [aux, eigen3]
)
t_ht_mercury = static_library(
't_ht_mercury',
files(
'hg_interface.h',
'hg_model.hpp',
'hg_sync.cpp',
'hg_sync.hpp',
),
link_with: [t_ht_mercury_kine],
include_directories: [xrt_include, cjson_include],
dependencies: [aux, onnxruntime, opencv, eigen3]
)

View file

@ -2,7 +2,7 @@
# SPDX-License-Identifier: BSL-1.0 # SPDX-License-Identifier: BSL-1.0
subdir('old_rgb') subdir('old_rgb')
subdir('mercury')
### ###
# Async wrapper around sync helper. # Async wrapper around sync helper.