1# SPDX-License-Identifier: Apache-2.0
2
3cmake_minimum_required(VERSION 3.20.0)
4
5find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
6
7project(lib_acpi)
8
9# Assert library
10add_library(mock_assert STATIC src/assert.c)
11target_link_libraries(mock_assert PRIVATE test_interface)
12target_compile_options(test_interface INTERFACE -include ztest.h)
13
14target_include_directories(testbinary PRIVATE
15  ${ZEPHYR_BASE}/../modules/lib
16  ${ZEPHYR_BASE}/../modules/lib/acpica/source/include
17  ${ZEPHYR_BASE}/../modules/lib/acpica/source/tools/acpiexec
18  )
19
20target_sources(testbinary PRIVATE
21  src/main.c
22  src/mock.c
23  )
24
25target_link_libraries(testbinary PRIVATE mock_assert)
26