From ba7f9d95782974a937484c0a9543e6f3e72929d1 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Tue, 30 Nov 2021 19:38:20 -0500 Subject: [PATCH] d/ht_cemu: enable build if XRT_BUILD_DRIVER_HANDTRACKING is enabled --- src/xrt/drivers/CMakeLists.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/xrt/drivers/CMakeLists.txt b/src/xrt/drivers/CMakeLists.txt index c7e1a8d24..a6a600b7f 100644 --- a/src/xrt/drivers/CMakeLists.txt +++ b/src/xrt/drivers/CMakeLists.txt @@ -236,11 +236,21 @@ if(XRT_BUILD_DRIVER_HANDTRACKING) ) target_include_directories(drv_ht PRIVATE ${OpenCV_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR}) list(APPEND ENABLED_DRIVERS ht) -endif() -add_library(drv_cemu STATIC ht_ctrl_emu/ht_ctrl_emu.cpp ht_ctrl_emu/ht_ctrl_emu_interface.h) -target_link_libraries(drv_cemu PRIVATE xrt-interfaces aux_generated_bindings aux_util) -list(APPEND ENABLED_HEADSET_DRIVERS drv_cemu) + add_library( + drv_cemu STATIC + ht_ctrl_emu/ht_ctrl_emu.cpp + ht_ctrl_emu/ht_ctrl_emu_interface.h + ) + target_link_libraries( + drv_cemu + PRIVATE + xrt-interfaces + aux_generated_bindings + aux_util + ) + list(APPEND ENABLED_HEADSET_DRIVERS drv_cemu) +endif() if(XRT_BUILD_DRIVER_SURVIVE) add_library(