Newer
Older
mbed-os / storage / blockdevice / COMPONENT_QSPIF / CMakeLists.txt
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-storage-qspif STATIC EXCLUDE_FROM_ALL)

target_include_directories(mbed-storage-qspif
    PUBLIC
        include
        include/QSPIF
)

target_sources(mbed-storage-qspif
    PRIVATE
        source/QSPIFBlockDevice.cpp
)

target_link_libraries(mbed-storage-qspif PUBLIC mbed-storage-blockdevice)

if(MBED_ENABLE_OS_INTERNAL_TESTS)
    if (NOT MBED_BUILD_GREENTEA_TESTS)
        add_subdirectory(UNITTESTS)
    endif()
endif()