Commit 65eeb199 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

targets: Link with tracking if built

parent ba12a0aa
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment