Skip to content

Commit

Permalink
[cmake][fix]: remove excess compilation items
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyin committed Jun 6, 2024
1 parent 6d7c3a7 commit 87f9185
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ endif()

add_subdirectory(examples)
add_subdirectory(src)
add_subdirectory(tests)
# add_subdirectory(tests)
add_subdirectory(tools)

if (K4A_BUILD_DOCS)
Expand Down
11 changes: 1 addition & 10 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,13 @@ endif()
# Add folders in Alphabetical order to help reduce merge issues
add_subdirectory(allocator)
add_subdirectory(calibration)
add_subdirectory(capturesync)
add_subdirectory(color)
add_subdirectory(color_mcu)
add_subdirectory(depth)
add_subdirectory(depth_mcu)
add_subdirectory(deloader)
add_subdirectory(dewrapper)
add_subdirectory(dynlib)
add_subdirectory(global)
add_subdirectory(image)
add_subdirectory(imu)
add_subdirectory(logging)
add_subdirectory(math)
add_subdirectory(queue)
add_subdirectory(rwlock)
add_subdirectory(tewrapper)
add_subdirectory(transformation)
add_subdirectory(usbcommand)


7 changes: 3 additions & 4 deletions src/allocator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

add_library(k4a_allocator STATIC
add_library(k4a_allocator STATIC
allocator.c
)

# Consumers should #include <k4ainternal/allocator.h>
target_include_directories(k4a_allocator PUBLIC
target_include_directories(k4a_allocator PUBLIC
${K4A_PRIV_INCLUDE_DIR})

# Dependencies of this library
target_link_libraries(k4a_allocator PUBLIC
target_link_libraries(k4a_allocator PUBLIC
azure::aziotsharedutil
k4ainternal::image
k4ainternal::logging)

# Define alias for other targets to link against
Expand Down
2 changes: 1 addition & 1 deletion src/orbbec/imu_sync/imusync.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// This library
Expand Down

0 comments on commit 87f9185

Please sign in to comment.