zephyr/tests/unit/timeutil/CMakeLists.txt
Yuval Peress f460c21578 test: update how unit tests set sources
Replaces cases of setting SOURCES before calling find_package with
proper target_sources.

Signed-off-by: Yuval Peress <peress@google.com>
2022-10-31 17:01:59 +01:00

16 lines
329 B
CMake

# Copyright 2019-2020 Peter Bigot Consulting
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
project(timeutil)
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
target_sources(testbinary
PRIVATE
main.c
test_gmtime.c
test_s32.c
test_s64.c
test_sync.c
)