26 lines
745 B
CMake
26 lines
745 B
CMake
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)
|