mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/14827/head
parent
84bb4cc6b9
commit
bf06897b8f
|
@ -7,7 +7,6 @@ add_library(mbed-headers-base INTERFACE)
|
|||
add_library(mbed-headers-platform INTERFACE)
|
||||
add_library(mbed-headers-connectivity INTERFACE)
|
||||
add_library(mbed-headers-storage INTERFACE)
|
||||
add_library(mbed-headers-hal INTERFACE)
|
||||
add_library(mbed-headers-events INTERFACE)
|
||||
|
||||
target_link_libraries(mbed-headers
|
||||
|
@ -89,12 +88,6 @@ target_include_directories(mbed-headers-events
|
|||
${mbed-os_SOURCE_DIR}/events/include/events/internal
|
||||
)
|
||||
|
||||
target_include_directories(mbed-headers-hal
|
||||
INTERFACE
|
||||
${mbed-os_SOURCE_DIR}/hal
|
||||
${mbed-os_SOURCE_DIR}/hal/include
|
||||
)
|
||||
|
||||
target_include_directories(mbed-headers
|
||||
INTERFACE
|
||||
${mbed-os_SOURCE_DIR}/features
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(mbed-headers-hal INTERFACE)
|
||||
|
||||
target_include_directories(mbed-headers-hal
|
||||
INTERFACE
|
||||
${mbed-os_SOURCE_DIR}/hal
|
||||
${mbed-os_SOURCE_DIR}/hal/include
|
||||
)
|
||||
|
||||
add_library(mbed-stubs-hal)
|
||||
|
||||
target_compile_definitions(mbed-stubs-hal
|
||||
|
|
Loading…
Reference in New Issue