From cf94bba4af1ba2a9b61b783ad441d2278db23b15 Mon Sep 17 00:00:00 2001 From: Manuel Bleichenbacher <10954524+manuelbl@users.noreply.github.com> Date: Thu, 25 Apr 2019 19:50:39 +0200 Subject: [PATCH] Add library as extra component for examples (cmake) --- examples/hello_world/CMakeLists.txt | 3 +++ examples/mac_address/CMakeLists.txt | 3 +++ examples/provisioning/CMakeLists.txt | 3 +++ examples/send_recv/CMakeLists.txt | 3 +++ 4 files changed, 12 insertions(+) diff --git a/examples/hello_world/CMakeLists.txt b/examples/hello_world/CMakeLists.txt index 3772daf..d9b69cd 100644 --- a/examples/hello_world/CMakeLists.txt +++ b/examples/hello_world/CMakeLists.txt @@ -2,5 +2,8 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) +get_filename_component(TTN_DIR ../.. ABSOLUTE) +set(EXTRA_COMPONENT_DIRS "${TTN_DIR}") + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(hello_world) diff --git a/examples/mac_address/CMakeLists.txt b/examples/mac_address/CMakeLists.txt index 83eb477..27e5b6b 100644 --- a/examples/mac_address/CMakeLists.txt +++ b/examples/mac_address/CMakeLists.txt @@ -2,5 +2,8 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) +get_filename_component(TTN_DIR ../.. ABSOLUTE) +set(EXTRA_COMPONENT_DIRS "${TTN_DIR}") + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(mac_address) diff --git a/examples/provisioning/CMakeLists.txt b/examples/provisioning/CMakeLists.txt index 7c2ad64..cb0bee0 100644 --- a/examples/provisioning/CMakeLists.txt +++ b/examples/provisioning/CMakeLists.txt @@ -2,5 +2,8 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) +get_filename_component(TTN_DIR ../.. ABSOLUTE) +set(EXTRA_COMPONENT_DIRS "${TTN_DIR}") + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(provisioning) diff --git a/examples/send_recv/CMakeLists.txt b/examples/send_recv/CMakeLists.txt index 11b81ee..b6b2f10 100644 --- a/examples/send_recv/CMakeLists.txt +++ b/examples/send_recv/CMakeLists.txt @@ -2,5 +2,8 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) +get_filename_component(TTN_DIR ../.. ABSOLUTE) +set(EXTRA_COMPONENT_DIRS "${TTN_DIR}") + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(send_recv)