File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
drivers/tests/UNITTESTS/AnalogIn Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11# Copyright (c) 2021 ARM Limited. All rights reserved.
22# SPDX-License-Identifier: Apache-2.0
33
4+ include (GoogleTest)
5+
46set (TEST_NAME analogin-unittest)
57
68add_executable (${TEST_NAME} )
79
10+ target_compile_definitions (${TEST_NAME}
11+ PRIVATE
12+ DEVICE_ANALOGIN
13+ MBED_CONF_TARGET_DEFAULT_ADC_VREF=3.3f
14+ )
15+
816target_sources (${TEST_NAME}
917 PRIVATE
1018 ${mbed-os_SOURCE_DIR}/drivers/source /AnalogIn.cpp
@@ -13,7 +21,11 @@ target_sources(${TEST_NAME}
1321
1422target_link_libraries (${TEST_NAME}
1523 PRIVATE
16- mbed-headers-drivers
1724 mbed-headers-platform
25+ mbed-headers-hal
26+ mbed-headers-drivers
27+ mbed-stubs-hal
28+ mbed-stubs-platform
1829)
1930
31+ gtest_discover_tests(${TEST_NAME} PROPERTIES LABELS "drivers" )
You can’t perform that action at this time.
0 commit comments