CMake: unit-tests: Move mbed-headers-events to the events directory

Move the header-only mbed-headers-events library the unit test stubs
depend on into the events component directory. This makes the events
stubs more self-contained and improves the composition of the library.
pull/14823/head
Rajkumar Kanagaraj 2021-06-23 07:41:22 -07:00
parent 88410a5f85
commit 65d202b93b
2 changed files with 11 additions and 10 deletions

View File

@ -5,7 +5,6 @@ add_library(mbed-stubs-headers INTERFACE)
add_library(mbed-headers INTERFACE) add_library(mbed-headers INTERFACE)
add_library(mbed-headers-base INTERFACE) add_library(mbed-headers-base INTERFACE)
add_library(mbed-headers-connectivity INTERFACE) add_library(mbed-headers-connectivity INTERFACE)
add_library(mbed-headers-events INTERFACE)
target_link_libraries(mbed-headers target_link_libraries(mbed-headers
INTERFACE INTERFACE
@ -40,15 +39,6 @@ target_include_directories(mbed-headers-connectivity
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include/ble ${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include/ble
) )
target_include_directories(mbed-headers-events
INTERFACE
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h/equeue
${mbed-os_SOURCE_DIR}/events/include
${mbed-os_SOURCE_DIR}/events/include/events
${mbed-os_SOURCE_DIR}/events/include/events/internal
)
target_include_directories(mbed-headers target_include_directories(mbed-headers
INTERFACE INTERFACE
${mbed-os_SOURCE_DIR}/features ${mbed-os_SOURCE_DIR}/features

View File

@ -1,6 +1,17 @@
# Copyright (c) 2021 ARM Limited. All rights reserved. # Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
add_library(mbed-headers-events INTERFACE)
target_include_directories(mbed-headers-events
INTERFACE
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h
${mbed-os_SOURCE_DIR}/events/tests/UNITTESTS/target_h/equeue
${mbed-os_SOURCE_DIR}/events/include
${mbed-os_SOURCE_DIR}/events/include/events
${mbed-os_SOURCE_DIR}/events/include/events/internal
)
add_library(mbed-stubs-events) add_library(mbed-stubs-events)
target_sources(mbed-stubs-events target_sources(mbed-stubs-events