Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions body-tracking-samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ add_subdirectory(extern)
add_subdirectory(simple_3d_viewer)
add_subdirectory(simple_sample)
add_subdirectory(sample_helper_libs)
add_subdirectory(floor_detector_sample)
17 changes: 17 additions & 0 deletions body-tracking-samples/floor_detector_sample/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.


add_executable(floor_detector_sample
main.cpp
FloorDetector.cpp
PointCloudGenerator.cpp)

target_include_directories(floor_detector_sample PRIVATE ../sample_helper_includes)

# Dependencies of this library
target_link_libraries(floor_detector_sample PRIVATE
k4a
window_controller_3d::window_controller_3d
)

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <array>
#include <unordered_map>
#include <k4abttypes.h>
#include <string>

// Define the bone list based on the documentation
const std::array<std::pair<k4abt_joint_id_t, k4abt_joint_id_t>, 31> g_boneList =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ target_include_directories(window_controller_3d PRIVATE ../../sample_helper_incl
target_include_directories(window_controller_3d PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

# Dependencies of this library
target_link_libraries(window_controller_3d PRIVATE
target_link_libraries(window_controller_3d PUBLIC
glfw::glfw
)

Expand Down
5 changes: 4 additions & 1 deletion body-tracking-samples/simple_3d_viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

find_package(k4arecord REQUIRED)


add_executable(simple_3d_viewer main.cpp)

target_include_directories(simple_3d_viewer PRIVATE ../sample_helper_includes)
Expand All @@ -9,7 +12,7 @@ target_include_directories(simple_3d_viewer PRIVATE ../sample_helper_includes)
target_link_libraries(simple_3d_viewer PRIVATE
k4a
k4abt
k4arecord
window_controller_3d::window_controller_3d
glfw::glfw
)