From 9bb6788a7b627c3b276278bfa4461ae387a95f7a Mon Sep 17 00:00:00 2001 From: Dave Olsthoorn Date: Sat, 16 Mar 2019 20:06:30 +0100 Subject: [PATCH 1/3] Create CMakeLists for cmake compatibility --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a0115b1 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +set(COMPONENT_SRCDIRS + "src" + "src/aes" + "src/hal" + "src/lmic" +) +set(COMPONENT_ADD_INCLUDEDIRS + "include" +) + +register_component() From 6afdfe4cafeaa1e455e4d395a4f7714e30df6e83 Mon Sep 17 00:00:00 2001 From: Dave Olsthoorn Date: Sat, 16 Mar 2019 20:39:01 +0100 Subject: [PATCH 2/3] Add nvs_flash requirement for cmake --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0115b1..2fe5569 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,5 +7,8 @@ set(COMPONENT_SRCDIRS set(COMPONENT_ADD_INCLUDEDIRS "include" ) +set(COMPONENT_REQUIRES + nvs_flash +) register_component() From 267e04c833b1b7e43b255b728c48b65bdbf84aad Mon Sep 17 00:00:00 2001 From: Manuel Bleichenbacher Date: Tue, 19 Mar 2019 21:49:08 +0100 Subject: [PATCH 3/3] Add cmake files for examples --- examples/hello_world/CMakeLists.txt | 6 ++++++ examples/hello_world/main/CMakeLists.txt | 4 ++++ examples/mac_address/CMakeLists.txt | 6 ++++++ examples/mac_address/main/CMakeLists.txt | 4 ++++ examples/provisioning/CMakeLists.txt | 6 ++++++ examples/provisioning/main/CMakeLists.txt | 4 ++++ examples/send_recv/CMakeLists.txt | 6 ++++++ examples/send_recv/main/CMakeLists.txt | 4 ++++ 8 files changed, 40 insertions(+) create mode 100644 examples/hello_world/CMakeLists.txt create mode 100644 examples/hello_world/main/CMakeLists.txt create mode 100644 examples/mac_address/CMakeLists.txt create mode 100644 examples/mac_address/main/CMakeLists.txt create mode 100644 examples/provisioning/CMakeLists.txt create mode 100644 examples/provisioning/main/CMakeLists.txt create mode 100644 examples/send_recv/CMakeLists.txt create mode 100644 examples/send_recv/main/CMakeLists.txt diff --git a/examples/hello_world/CMakeLists.txt b/examples/hello_world/CMakeLists.txt new file mode 100644 index 0000000..3772daf --- /dev/null +++ b/examples/hello_world/CMakeLists.txt @@ -0,0 +1,6 @@ +# The following 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(hello_world) diff --git a/examples/hello_world/main/CMakeLists.txt b/examples/hello_world/main/CMakeLists.txt new file mode 100644 index 0000000..e931882 --- /dev/null +++ b/examples/hello_world/main/CMakeLists.txt @@ -0,0 +1,4 @@ +set(COMPONENT_SRCS "main.cpp") +set(COMPONENT_ADD_INCLUDEDIRS "") + +register_component() diff --git a/examples/mac_address/CMakeLists.txt b/examples/mac_address/CMakeLists.txt new file mode 100644 index 0000000..83eb477 --- /dev/null +++ b/examples/mac_address/CMakeLists.txt @@ -0,0 +1,6 @@ +# The following 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(mac_address) diff --git a/examples/mac_address/main/CMakeLists.txt b/examples/mac_address/main/CMakeLists.txt new file mode 100644 index 0000000..e931882 --- /dev/null +++ b/examples/mac_address/main/CMakeLists.txt @@ -0,0 +1,4 @@ +set(COMPONENT_SRCS "main.cpp") +set(COMPONENT_ADD_INCLUDEDIRS "") + +register_component() diff --git a/examples/provisioning/CMakeLists.txt b/examples/provisioning/CMakeLists.txt new file mode 100644 index 0000000..7c2ad64 --- /dev/null +++ b/examples/provisioning/CMakeLists.txt @@ -0,0 +1,6 @@ +# The following 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(provisioning) diff --git a/examples/provisioning/main/CMakeLists.txt b/examples/provisioning/main/CMakeLists.txt new file mode 100644 index 0000000..e931882 --- /dev/null +++ b/examples/provisioning/main/CMakeLists.txt @@ -0,0 +1,4 @@ +set(COMPONENT_SRCS "main.cpp") +set(COMPONENT_ADD_INCLUDEDIRS "") + +register_component() diff --git a/examples/send_recv/CMakeLists.txt b/examples/send_recv/CMakeLists.txt new file mode 100644 index 0000000..11b81ee --- /dev/null +++ b/examples/send_recv/CMakeLists.txt @@ -0,0 +1,6 @@ +# The following 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(send_recv) diff --git a/examples/send_recv/main/CMakeLists.txt b/examples/send_recv/main/CMakeLists.txt new file mode 100644 index 0000000..e931882 --- /dev/null +++ b/examples/send_recv/main/CMakeLists.txt @@ -0,0 +1,4 @@ +set(COMPONENT_SRCS "main.cpp") +set(COMPONENT_ADD_INCLUDEDIRS "") + +register_component()