Browse Source

Add CMakeLists.txt to support cmake build system (ESP-IDF v3.2).

main
David Antliff 7 years ago
parent
commit
3f7044920b
  1. 9
      CMakeLists.txt
  2. 2
      components/esp32-ds18b20
  3. 2
      components/esp32-owb
  4. 4
      main/CMakeLists.txt

9
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)

2
components/esp32-ds18b20

@ -1 +1 @@
Subproject commit 7a57590902f5bdee6ead0a6fc6552fd9f3fc0fe6 Subproject commit 331cadf2e25c004b5506d329979ac3f7d4998a5d

2
components/esp32-owb

@ -1 +1 @@
Subproject commit 8c04d3b57be7b0ed734cbebf07c47f5575aa8613 Subproject commit de012fd1deeb9aff194bc8e32e1dee725258c022

4
main/CMakeLists.txt

@ -0,0 +1,4 @@
set(COMPONENT_SRCDIRS ".")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()
Loading…
Cancel
Save