1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4
5zephyr_library_compile_definitions(NO_POSIX_CHEATS)
6
7zephyr_library_sources(
8	hw_models_top.c
9	timer_model.c
10	native_rtc.c
11	irq_handler.c
12	irq_ctrl.c
13	main.c
14	tracing.c
15	cmdline_common.c
16	cmdline.c
17	cpu_wait.c
18	hw_counter.c
19	)
20
21zephyr_library_include_directories(
22  ${ZEPHYR_BASE}/kernel/include
23  ${ZEPHYR_BASE}/arch/posix/include
24  )
25
26if(CONFIG_HAS_SDL)
27	add_subdirectory(${ZEPHYR_BASE}/boards/${ARCH}/common/sdl/ ${CMAKE_CURRENT_BINARY_DIR}/sdl)
28endif()
29
30zephyr_ld_options(
31  -lm
32)
33