forked from ARMmbed/sdio-driver
-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
40 lines (32 loc) · 991 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
add_library(mbed-storage-sdio STATIC)
list(APPEND SOURCEFILES
SDIOBlockDevice.cpp
)
target_include_directories(mbed-storage-sdio INTERFACE .)
if("STM32F4" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-storage-sdio PUBLIC ./TARGET_STM/TARGET_STM32F4)
list(APPEND SOURCEFILES
TARGET_STM/TARGET_STM32F4/sdio_device.c
)
endif()
if("STM32F7" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-storage-sdio PUBLIC ./TARGET_STM/TARGET_STM32F7)
list(APPEND SOURCEFILES
TARGET_STM/TARGET_STM32F7/sdio_device.c
)
endif()
if("STM32H7" IN_LIST MBED_TARGET_LABELS)
target_include_directories(mbed-storage-sdio PUBLIC ./TARGET_STM/TARGET_STM32H7)
list(APPEND SOURCEFILES
TARGET_STM/TARGET_STM32H7/sdio_device.c
)
endif()
target_link_libraries(mbed-storage-sdio
PUBLIC
mbed-rtos-flags
mbed-storage-blockdevice
)
target_sources(mbed-storage-sdio
PRIVATE
${SOURCEFILES}
)