esp-idf-lib/devtools/cmake-get-requires/CMakeLists.txt

Mon, 03 Apr 2023 16:07:34 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 03 Apr 2023 16:07:34 +0200
changeset 12
bb72d448e282
parent 1
1c9894662795
permissions
-rw-r--r--

In the esp-idf-lib the adps9930 driver uses a device descriptor structure instead of just i2c_dev_t. Fixed a linking issue. Added APDS9930 task. Added getLightValues function. Added wifi quality value to the MQTT payload. The payload is complete and will be published.

# a script to parse CMakeLists.txt of a component, print REQUIRES.
#
# usage:
# cmake -DCOMPONENT_NAME:STRING=framebuffer .  >/dev/null
#
# output in stderr:
# REQUIRES:log;color

cmake_minimum_required(VERSION 3.5)

# mock idf_component_register()
function(idf_component_register)
    set(multiValueArgs REQUIRES)
    cmake_parse_arguments(MY "" "" "${multiValueArgs}" ${ARGN})

    # print REQUIRES argument to stderr. MY_REQUIRES is a semicolon separated
    # string, such as `foo;bar`
    message(NOTICE "REQUIRES:${MY_REQUIRES}")
endfunction()

include(${CMAKE_CURRENT_SOURCE_DIR}/../../components/${COMPONENT_NAME}/CMakeLists.txt)

project(ProjectName)

mercurial