1# Copyright 2024 NXP
2#
3# SPDX-License-Identifier: Apache-2.0
4#
5
6cmake_minimum_required(VERSION 3.20.0)
7
8find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
9
10set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
11
12if(CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
13   CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
14   CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0)
15  message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
16else()
17  message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
18endif()
19
20project(mbox_data_ipc)
21
22enable_language(C ASM)
23
24if(CONFIG_INCLUDE_REMOTE_DIR)
25  target_include_directories(zephyr_interface
26    INTERFACE ${REMOTE_ZEPHYR_DIR}/include/public)
27endif()
28
29target_sources(app PRIVATE src/main.c)
30