mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 05:06:31 +00:00
targets: Link with tracking if built
This commit is contained in:
parent
ba12a0aa0e
commit
65eeb19939
src/xrt/targets
|
@ -50,6 +50,12 @@ if(BUILD_DRIVER_V4L2)
|
|||
list(APPEND DRIVER_OBJECTS $<TARGET_OBJECTS:drv_v4l2>)
|
||||
endif()
|
||||
|
||||
if(BUILD_TRACKING)
|
||||
set(XRT_BUILD_TRACKING TRUE)
|
||||
list(APPEND DRIVER_OBJECTS $<TARGET_OBJECTS:aux_tracking>)
|
||||
list(APPEND DRIVER_LIBRARIES ${OpenCV_LIBRARIES})
|
||||
endif()
|
||||
|
||||
configure_file(targets_enabled_drivers.h.cmake_in ${CMAKE_CURRENT_BINARY_DIR}/targets_enabled_drivers.h)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
|
|
@ -65,13 +65,6 @@ target_link_libraries(gui PRIVATE
|
|||
${SDL2_LIBRARIES}
|
||||
)
|
||||
|
||||
if(BUILD_TRACKING)
|
||||
target_link_libraries(gui PRIVATE
|
||||
$<TARGET_OBJECTS:aux_tracking>
|
||||
${OpenCV_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
if(DRIVER_OBJECTS)
|
||||
target_sources(gui PRIVATE ${DRIVER_OBJECTS})
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue