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)