2024-06-18 02:00:11 +08:00
|
|
|
# Copyright (c) 2024 Google LLC
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
project(i2c_emul)
|
|
|
|
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/emulated_target.cpp
|
2024-07-17 00:43:18 +08:00
|
|
|
src/test_fowarding_common.cpp
|
2024-06-18 02:00:11 +08:00
|
|
|
)
|
2024-07-17 00:43:18 +08:00
|
|
|
if(CONFIG_I2C_TARGET_BUFFER_MODE)
|
|
|
|
target_sources(app PRIVATE src/test_forwarding_buf.cpp)
|
|
|
|
else()
|
|
|
|
target_sources(app PRIVATE src/test_forwarding_pio.cpp)
|
|
|
|
endif()
|
2024-06-18 02:00:11 +08:00
|
|
|
target_include_directories(app PRIVATE include)
|