Initial import
This commit is contained in:
25
app/CMakeLists.txt
Normal file
25
app/CMakeLists.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
# Set BOARD_ROOT and DTS_ROOT to the repo root so that boards/<vendor>/<board>/
|
||||
# is searched for out-of-tree board definitions.
|
||||
# Must be set BEFORE find_package(Zephyr).
|
||||
list(APPEND BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR}/..)
|
||||
list(APPEND DTS_ROOT ${CMAKE_CURRENT_LIST_DIR}/..)
|
||||
|
||||
# Register the LR11xx out-of-tree driver as an extra Zephyr module.
|
||||
# It is only compiled when a semtech,lr11xx DTS node is enabled.
|
||||
list(APPEND ZEPHYR_EXTRA_MODULES
|
||||
${CMAKE_CURRENT_LIST_DIR}/../drivers/lora/lr11xx
|
||||
)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
project(loramodem LANGUAGES C)
|
||||
|
||||
target_sources(app PRIVATE
|
||||
src/main.c
|
||||
src/kiss.c
|
||||
src/lora_modem.c
|
||||
)
|
||||
|
||||
target_include_directories(app PRIVATE src)
|
||||
Reference in New Issue
Block a user