mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14079 from hugueskamba/hk_cmake_kvstore_dependency
CMake: Add Blockdevice dependency to KVstore librarypull/14108/head
commit
e96b0977cc
|
@ -15,7 +15,36 @@ target_include_directories(mbed-storage-kvstore
|
||||||
include/kvstore
|
include/kvstore
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if("DATAFLASH" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-dataflash)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("FLASHIAP" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-flashiap)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("I2CEE" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-i2cee)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("OSPIF" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-ospif)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("QSPIF" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-qspif)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("SD" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-sd)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("SPIF" IN_LIST MBED_TARGET_LABELS)
|
||||||
|
list(APPEND mbed_blockdevice_libs mbed-storage-spif)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(mbed-storage-kvstore
|
target_link_libraries(mbed-storage-kvstore
|
||||||
INTERFACE
|
INTERFACE
|
||||||
mbed-storage-kv-global-api
|
mbed-storage-kv-global-api
|
||||||
|
${mbed_blockdevice_libs}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue