pimoroni-pico/drivers/fatfs/fatfs.cmake

14 wiersze
407 B
CMake
Czysty Zwykły widok Historia

2021-05-05 16:32:35 +00:00
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})
2021-08-03 13:13:53 +00:00
2021-05-05 16:32:35 +00:00
endif()