forked from EmbeddedTeam/app_photomagnetic
Restructure Led as a template on the DT spec, add a generic signal/slot mechanism for host status, and cache Infrared sensor samples via trigger callbacks. Add new init modules for LED, temp, and watchdog, and build them into the main app.
26 lines
608 B
CMake
26 lines
608 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(app_photomagnetic)
|
|
|
|
|
|
|
|
target_include_directories(app PRIVATE include)
|
|
|
|
if(CONFIG_SAMPLE_HELLOWORLD)
|
|
message("CONFIG_SAMPLE_HELLOWORLD is enabled")
|
|
target_sources(app PRIVATE src/sample_hello_world.cpp)
|
|
elseif(CONFIG_SAMPLE_NTC)
|
|
message("CONFIG_SAMPLE_NTC is enabled")
|
|
target_sources(app PRIVATE src/sample_ntc.cpp)
|
|
else()
|
|
message("build main app")
|
|
|
|
target_sources(app PRIVATE
|
|
src/main.cpp
|
|
src/led.cpp
|
|
src/temp.cpp
|
|
src/watdog.cpp
|
|
)
|
|
endif()
|