kopia lustrzana https://github.com/pimoroni/pimoroni-pico
13 wiersze
406 B
CMake
13 wiersze
406 B
CMake
|
if (NOT TARGET fatfs)
|
||
|
add_library(fatfs INTERFACE)
|
||
|
|
||
|
target_sources(fatfs INTERFACE
|
||
|
${CMAKE_CURRENT_LIST_DIR}/ff.c
|
||
|
${CMAKE_CURRENT_LIST_DIR}/ffsystem.c
|
||
|
${CMAKE_CURRENT_LIST_DIR}/ffunicode.c
|
||
|
)
|
||
|
|
||
|
target_link_libraries(fatfs INTERFACE pico_stdlib hardware_clocks hardware_spi)
|
||
|
target_include_directories(fatfs INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
||
|
endif()
|