18 lines
491 B
CMake
18 lines
491 B
CMake
# 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
|
|
src/test_fowarding_common.cpp
|
|
)
|
|
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()
|
|
target_include_directories(app PRIVATE include)
|