mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2025-06-15 04:14:28 +02:00
Update example build configuration
This commit is contained in:
parent
e15d936bb4
commit
2a31ef0096
@ -1,9 +1,8 @@
|
|||||||
# 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)
|
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)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
|
||||||
|
# Update the below line to match the path to the ttn-esp32 library,
|
||||||
|
# e.g. list(APPEND EXTRA_COMPONENT_DIRS "/Users/me/Documents/ttn-esp32")
|
||||||
|
list(APPEND EXTRA_COMPONENT_DIRS "../..")
|
||||||
|
|
||||||
project(mac_address)
|
project(mac_address)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "main.cpp")
|
idf_component_register(
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
SRCS "main.cpp"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
REQUIRES ttn-esp32)
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
# 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)
|
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)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
|
||||||
|
# Update the below line to match the path to the ttn-esp32 library,
|
||||||
|
# e.g. list(APPEND EXTRA_COMPONENT_DIRS "/Users/me/Documents/ttn-esp32")
|
||||||
|
list(APPEND EXTRA_COMPONENT_DIRS "../..")
|
||||||
|
|
||||||
project(provisioning)
|
project(provisioning)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "main.cpp")
|
idf_component_register(
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
SRCS "main.cpp"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
REQUIRES ttn-esp32)
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
# 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)
|
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)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
project(send_recv)
|
|
||||||
|
# Update the below line to match the path to the ttn-esp32 library,
|
||||||
|
# e.g. list(APPEND EXTRA_COMPONENT_DIRS "/Users/me/Documents/ttn-esp32")
|
||||||
|
list(APPEND EXTRA_COMPONENT_DIRS "../..")
|
||||||
|
|
||||||
|
project(shutdown)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
set(COMPONENT_SRCS "main.cpp")
|
idf_component_register(
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
SRCS "main.cpp"
|
||||||
|
INCLUDE_DIRS "."
|
||||||
register_component()
|
REQUIRES ttn-esp32)
|
||||||
|
Loading…
Reference in New Issue
Block a user