irrigation_system/software/apps/slave_node/CMakeLists.txt

11 lines
385 B
CMake

cmake_minimum_required(VERSION 3.20)
# Point BOARD_ROOT and DTS_ROOT to the main 'software' directory
# so Zephyr can find the 'boards' subdirectory there.
list(APPEND BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
list(APPEND DTS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(slave_node)
target_sources(app PRIVATE src/main.c)