# Copyright (c) 2021 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 include(GoogleTest) set(TEST_NAME tdbstore-unittest) add_executable(${TEST_NAME}) target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/storage/blockdevice/source/HeapBlockDevice.cpp ${mbed-os_SOURCE_DIR}/storage/blockdevice/source/BufferedBlockDevice.cpp ${mbed-os_SOURCE_DIR}/storage/kvstore/tdbstore/source/TDBStore.cpp moduletest.cpp ) target_link_libraries(${TEST_NAME} PRIVATE mbed-headers-blockdevice mbed-headers-drivers mbed-headers-hal mbed-headers-kvstore mbed-headers-platform mbed-stubs-platform gmock_main ) gtest_discover_tests(${TEST_NAME} PROPERTIES LABELS "storage")