Skip to content

Commit 7e3565b

Browse files
committed
Unit tests: Move cmsis target_h stubs
This creates a new mbed-headers-cmsis which is always and only used by mbed-headers-platform, so we add the former to the laters' linked targets.
1 parent 44cd64a commit 7e3565b

File tree

12 files changed

+17
-0
lines changed

12 files changed

+17
-0
lines changed

cmsis/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
add_subdirectory(CMSIS_5)
55
add_subdirectory(device)
66

7+
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
8+
add_subdirectory(tests/UNITTESTS/doubles)
9+
endif()

cmsis/tests/UNITTESTS/.mbedignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2021 Arm Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
add_library(mbed-headers-cmsis INTERFACE)
5+
6+
target_include_directories(mbed-headers-cmsis
7+
INTERFACE
8+
.
9+
)
File renamed without changes.

0 commit comments

Comments
 (0)