components/spidriver/CMakeLists.txt

branch
idf 5.1
changeset 129
31f9d3e4a85f
parent 74
cba50f7529d0
equal deleted inserted replaced
128:64886971967b 129:31f9d3e4a85f
1 idf_component_register(SRCS spi_master_lobo.c INCLUDE_DIRS .) 1 if (NOT IDF_VERSION_MAJOR)
2 set(IDF_VERSION_MAJOR 3)
3 endif()
2 4
5 if (IDF_VERSION_MAJOR LESS 5)
6 message(FATAL_ERROR "Can't build: requires ESP-IDF version 5.0 or above.")
7 endif()
8
9 set(COMPONENT_ADD_INCLUDEDIRS .)
10 set(COMPONENT_SRCS "spi_master_lobo.c")
11 set(COMPONENT_REQUIRES "soc" "driver" "esp_rom")
12 register_component()
13
14 #idf_component_register(SRCS spi_master_lobo.c INCLUDE_DIRS .)
15

mercurial