1cmake_minimum_required(VERSION 3.20.0) 2# Copyright (c) 2019 Linaro Limited 3# Copyright (c) 2018-2021 Nordic Semiconductor ASA 4# Copyright (c) 2023 Arm Limited 5# 6# SPDX-License-Identifier: Apache-2.0 7# 8 9set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../rpmsg_service_remote/zephyr) 10 11find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 12project(rpmsg_service) 13 14message(STATUS "${BOARD} compile as Master in this sample") 15 16enable_language(C ASM) 17 18if("${BOARD}" STREQUAL "esp32_devkitc_wrover" OR "${BOARD}" STREQUAL "esp32s3_devkitm") 19 set_source_files_properties(${REMOTE_ZEPHYR_DIR}/esp32_net_firmware.c PROPERTIES GENERATED TRUE) 20 target_sources(app PRIVATE src/main.c ${REMOTE_ZEPHYR_DIR}/esp32_net_firmware.c) 21else() 22 target_sources(app PRIVATE src/main.c) 23endif() 24