1cmake_minimum_required(VERSION 3.20.0) 2# Copyright (c) 2018 Nordic Semiconductor ASA 3# Copyright (c) 2019 Linaro Limited 4# Copyright 2022 NXP 5# 6# SPDX-License-Identifier: Apache-2.0 7# 8 9set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../openamp_remote/zephyr) 10 11 12find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 13project(openamp) 14 15message(STATUS "${BOARD} compile as Master in this sample") 16 17if(CONFIG_INCLUDE_REMOTE_DIR) 18 target_include_directories(zephyr_interface 19 INTERFACE ${REMOTE_ZEPHYR_DIR}/include/public) 20endif() 21 22enable_language(C ASM) 23 24target_sources(app PRIVATE src/main.c) 25 26target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) 27