# Copyright (c) 2025 aetherd Contributors
# SPDX-License-Identifier: MIT

cmake_minimum_required(VERSION 3.20.0)

# Include module configuration if it exists (created by build-ncs.sh)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/app_modules.cmake")
    include(${CMAKE_CURRENT_SOURCE_DIR}/app_modules.cmake)
endif()

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(aetherd_demo)

target_sources(app PRIVATE src/main.c)

# Add LED status indicator if PWM is available (Thingy53)
target_sources_ifdef(CONFIG_PWM app PRIVATE src/led_status.c)
