components/esp32-owb/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 owb_rmt.c owb.c owb_gpio.c INCLUDE_DIRS include) 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 include)
10 set(COMPONENT_SRCS "owb.c" "owb_gpio.c" "owb_rmt.c")
11 set(COMPONENT_REQUIRES "soc" "driver" "esp_rom")
12 register_component()

mercurial