From 3f7044920bff694e40ff890b8eddf5243b8b1c61 Mon Sep 17 00:00:00 2001 From: David Antliff Date: Wed, 10 Jul 2019 12:50:57 +1200 Subject: [PATCH] Add CMakeLists.txt to support cmake build system (ESP-IDF v3.2). --- CMakeLists.txt | 9 +++++++++ components/esp32-ds18b20 | 2 +- components/esp32-owb | 2 +- main/CMakeLists.txt | 4 ++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 main/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f19c761 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +# The following five lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.5) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(esp32-ds18b20-example) + +# Ignore false clang warnings about `struct foo = { 0 }` +target_compile_options(main PRIVATE -Wno-missing-braces -Wmissing-field-initializers) diff --git a/components/esp32-ds18b20 b/components/esp32-ds18b20 index 7a57590..331cadf 160000 --- a/components/esp32-ds18b20 +++ b/components/esp32-ds18b20 @@ -1 +1 @@ -Subproject commit 7a57590902f5bdee6ead0a6fc6552fd9f3fc0fe6 +Subproject commit 331cadf2e25c004b5506d329979ac3f7d4998a5d diff --git a/components/esp32-owb b/components/esp32-owb index 8c04d3b..de012fd 160000 --- a/components/esp32-owb +++ b/components/esp32-owb @@ -1 +1 @@ -Subproject commit 8c04d3b57be7b0ed734cbebf07c47f5575aa8613 +Subproject commit de012fd1deeb9aff194bc8e32e1dee725258c022 diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt new file mode 100644 index 0000000..cfb6c0f --- /dev/null +++ b/main/CMakeLists.txt @@ -0,0 +1,4 @@ +set(COMPONENT_SRCDIRS ".") +set(COMPONENT_ADD_INCLUDEDIRS ".") + +register_component()