| # SPDX-License-Identifier: Apache-2.0 |
| |
| cmake_minimum_required(VERSION 3.20.0) |
| |
| project(bt_data_parse) |
| |
| find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) |
| |
| add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) |
| |
| target_link_libraries(testbinary PRIVATE host_mocks) |
| |
| target_sources(testbinary |
| PRIVATE |
| src/main.c |
| |
| ${ZEPHYR_BASE}/subsys/bluetooth/host/data.c |
| ${ZEPHYR_BASE}/subsys/net/buf_simple.c |
| ${ZEPHYR_BASE}/subsys/logging/log_minimal.c |
| ${ZEPHYR_BASE}/subsys/bluetooth/common/bt_str.c |
| ${ZEPHYR_BASE}/subsys/bluetooth/host/uuid.c |
| ) |