1# Copyright (c) 2024 Google LLC 2# SPDX-License-Identifier: Apache-2.0 3 4cmake_minimum_required(VERSION 3.20.0) 5find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 6project(i2c_emul) 7 8target_sources(app PRIVATE 9 src/emulated_target.cpp 10 src/test_fowarding_common.cpp 11) 12if(CONFIG_I2C_TARGET_BUFFER_MODE) 13 target_sources(app PRIVATE src/test_forwarding_buf.cpp) 14else() 15 target_sources(app PRIVATE src/test_forwarding_pio.cpp) 16endif() 17target_include_directories(app PRIVATE include) 18