f460c21578
Replaces cases of setting SOURCES before calling find_package with proper target_sources. Signed-off-by: Yuval Peress <peress@google.com>
14 lines
253 B
CMake
14 lines
253 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
project(list)
|
|
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
target_sources(testbinary
|
|
PRIVATE
|
|
main.c
|
|
slist.c
|
|
dlist.c
|
|
sflist.c
|
|
)
|