1# Copyright (c) 2022 Bjarki Arge Andreasen 2# SPDX-License-Identifier: Apache-2.0 3 4cmake_minimum_required(VERSION 3.20.0) 5 6find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 7 8project(rtc_api) 9 10target_sources(app PRIVATE 11 src/main.c 12 src/test_time_incrementing.c 13 src/test_time.c 14 src/test_y2k.c 15) 16 17if(DEFINED CONFIG_RTC_ALARM) 18 target_sources(app PRIVATE 19 src/test_alarm_callback.c 20 src/test_alarm.c 21 ) 22endif() 23 24if(DEFINED CONFIG_RTC_UPDATE) 25 target_sources(app PRIVATE 26 src/test_update_callback.c 27 ) 28endif() 29 30if(DEFINED CONFIG_RTC_CALIBRATION) 31 target_sources(app PRIVATE 32 src/test_calibrate.c 33 ) 34endif() 35 36target_include_directories(app PRIVATE inc) 37