Skip to content

Commit 4412e76

Browse files
committed
CMake: unit-tests: Move mbed-headers-rtos to the rtos directory
Move the header-only mbed-headers-rtos library the unit test stubs depend on into the rtos component directory. This makes the rtos stubs more self-contained and improves the composition of the library.
1 parent 062638e commit 4412e76

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

UNITTESTS/stubs/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ add_library(mbed-headers-connectivity INTERFACE)
99
add_library(mbed-headers-storage INTERFACE)
1010
add_library(mbed-headers-hal INTERFACE)
1111
add_library(mbed-headers-events INTERFACE)
12-
add_library(mbed-headers-rtos INTERFACE)
1312

1413
target_link_libraries(mbed-headers
1514
INTERFACE
@@ -101,12 +100,6 @@ target_include_directories(mbed-headers-hal
101100
${mbed-os_SOURCE_DIR}/hal/include
102101
)
103102

104-
target_include_directories(mbed-headers-rtos
105-
INTERFACE
106-
${mbed-os_SOURCE_DIR}/rtos/include
107-
${mbed-os_SOURCE_DIR}/rtos/include/rtos
108-
)
109-
110103
target_include_directories(mbed-headers
111104
INTERFACE
112105
${mbed-os_SOURCE_DIR}/features

rtos/tests/UNITTESTS/doubles/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Copyright (c) 2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_library(mbed-headers-rtos INTERFACE)
5+
6+
target_include_directories(mbed-headers-rtos
7+
INTERFACE
8+
${mbed-os_SOURCE_DIR}/rtos/include
9+
${mbed-os_SOURCE_DIR}/rtos/include/rtos
10+
)
11+
412
add_library(mbed-stubs-rtos-headers INTERFACE)
513

614
target_include_directories(mbed-stubs-rtos-headers

0 commit comments

Comments
 (0)