Skip to content
Snippets Groups Projects
Commit cd3d3e07 authored by Fabian Reister's avatar Fabian Reister
Browse files

cmakelists: ARMARX_ENABLE_AZURE_KINECT_BODY_TRACKING to disable the body tracking by default

parent 9ae35976
No related branches found
No related tags found
1 merge request!141feature: Azure Kinect Body Tracking SDK
......@@ -13,13 +13,17 @@ set(COMPONENT_LIBS ArmarXCore ArmarXCoreObservers RobotAPIInterfaces VisionXInte
set(SOURCES AzureKinectPointCloudProvider.cpp)
set(HEADERS AzureKinectPointCloudProvider.h)
armarx_add_component("${SOURCES}" "${HEADERS}")
if(k4a_FOUND)
target_include_directories(AzureKinectPointCloudProvider PUBLIC ${k4a_INCLUDE_DIR})
endif()
if(k4abt_FOUND)
target_link_libraries(AzureKinectPointCloudProvider PUBLIC k4abt::k4abt)
target_compile_definitions(AzureKinectPointCloudProvider PUBLIC INCLUDE_BODY_TRACKING)
option(ARMARX_ENABLE_AZURE_KINECT_BODY_TRACKING "" OFF)
if(ARMARX_ENABLE_AZURE_KINECT_BODY_TRACKING)
message(STATUS "Azure Kinect Body Tracking enabled by user")
if(k4abt_FOUND)
target_link_libraries(AzureKinectPointCloudProvider PUBLIC k4abt::k4abt)
target_compile_definitions(AzureKinectPointCloudProvider PUBLIC INCLUDE_BODY_TRACKING)
endif()
endif()
# add unit tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment