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