File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
33
33
add_subdirectory (lorawan )
34
34
add_subdirectory (mbedtls )
35
35
add_subdirectory (netsocket )
36
+ add_subdirectory (nfc )
36
37
else ()
37
38
# The directories below contain optional target libraries
38
39
add_subdirectory (FEATURE_BLE EXCLUDE_FROM_ALL )
Original file line number Diff line number Diff line change 3
3
4
4
add_subdirectory (libraries )
5
5
6
+ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING )
7
+ if (BUILD_GREENTEA_TESTS )
8
+ add_subdirectory (tests/TESTS )
9
+ endif ()
10
+ endif ()
11
+
6
12
target_include_directories (mbed-nfc
7
13
INTERFACE
8
14
.
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2021 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ add_subdirectory (nfc/eeprom )
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020 ARM Limited. All rights reserved.
1
+ # Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- cmake_minimum_required ( VERSION 3.19.0 FATAL_ERROR )
4
+ include ( mbed_greentea )
5
5
6
- set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../../../../.. CACHE INTERNAL "" )
7
- set (TEST_TARGET mbed-connectivity-nfc-eeprom )
8
-
9
- include (${MBED_PATH} /tools/cmake/mbed_greentea.cmake )
10
-
11
- project (${TEST_TARGET} )
6
+ if (NOT "MBED_CONF_NFCEEPROM=1" IN_LIST MBED_CONFIG_DEFINITIONS )
7
+ set (TEST_SKIPPED "NFC EEPROM required" )
8
+ endif ()
12
9
13
10
mbed_greentea_add_test (
14
11
TEST_NAME
15
- ${TEST_TARGET}
12
+ mbed-connectivity-nfc-eeprom
16
13
TEST_SOURCES
17
14
main.cpp
18
15
TEST_REQUIRED_LIBS
19
16
mbed-nfc
17
+ TEST_SKIPPED
18
+ ${TEST_SKIPPED}
20
19
)
You can’t perform that action at this time.
0 commit comments