Skip to content

Commit 9723327

Browse files
committed
CMake: unit-tests: Move mbed-headers-hal to the hal directory
Move the header-only mbed-headers-hal library the unit test stubs depend on into the hal component directory. This makes the events stubs more self-contained and improves the composition of the library.
1 parent 017d674 commit 9723327

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
@@ -7,7 +7,6 @@ add_library(mbed-headers-base INTERFACE)
77
add_library(mbed-headers-platform INTERFACE)
88
add_library(mbed-headers-connectivity INTERFACE)
99
add_library(mbed-headers-storage INTERFACE)
10-
add_library(mbed-headers-hal INTERFACE)
1110
add_library(mbed-headers-events INTERFACE)
1211
add_library(mbed-headers-rtos INTERFACE)
1312

@@ -95,12 +94,6 @@ target_include_directories(mbed-headers-events
9594
${mbed-os_SOURCE_DIR}/events/include/events/internal
9695
)
9796

98-
target_include_directories(mbed-headers-hal
99-
INTERFACE
100-
${mbed-os_SOURCE_DIR}/hal
101-
${mbed-os_SOURCE_DIR}/hal/include
102-
)
103-
10497
target_include_directories(mbed-headers-rtos
10598
INTERFACE
10699
${mbed-os_SOURCE_DIR}/rtos/include

hal/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-hal INTERFACE)
5+
6+
target_include_directories(mbed-headers-hal
7+
INTERFACE
8+
${mbed-os_SOURCE_DIR}/hal
9+
${mbed-os_SOURCE_DIR}/hal/include
10+
)
11+
412
add_library(mbed-stubs-hal)
513

614
target_compile_definitions(mbed-stubs-hal

0 commit comments

Comments
 (0)