esp-idf-lib/components/ultrasonic/CMakeLists.txt

Sun, 02 Apr 2023 09:33:20 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 02 Apr 2023 09:33:20 +0200
changeset 10
eee990609da7
parent 1
1c9894662795
permissions
-rw-r--r--

Fixed start of json status message.

if(${IDF_TARGET} STREQUAL esp8266)
    set(req esp8266 freertos esp_idf_lib_helpers esp_timer)
elseif(${IDF_VERSION_MAJOR} STREQUAL 4 AND ${IDF_VERSION_MINOR} STREQUAL 1 AND ${IDF_VERSION_PATCH} STREQUAL 3)
    set(req driver freertos esp_idf_lib_helpers)
else()
    set(req driver freertos esp_idf_lib_helpers esp_timer)
endif()

idf_component_register(
    SRCS ultrasonic.c
    INCLUDE_DIRS .
    REQUIRES ${req}
)

mercurial