# SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.20.0) # This line should ideally be after project() and find_package(Zephyr) # target_include_directories(app PRIVATE ${ZEPHYR_BASE}/include/zephyr/drivers) # <-- WRONG POSITION list(APPEND BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(valve_node) target_include_directories(app PRIVATE ${ZEPHYR_BASE}/include/zephyr/drivers) target_sources(app PRIVATE src/main2.c)