1#
2# Copyright (c) 2021 Carlo Caione <ccaione@baylibre.com>
3# Copyright 2024 NXP
4#
5# SPDX-License-Identifier: Apache-2.0
6#
7
8cmake_minimum_required(VERSION 3.20.0)
9
10find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
11
12set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
13
14if(NOT (CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
15        CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP OR
16        CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
17        CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
18        CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7
19       )
20  )
21  message(FATAL_ERROR "${BOARD} is not supported for this sample")
22endif()
23
24project(ipc_service)
25
26if(CONFIG_INCLUDE_REMOTE_DIR)
27  target_include_directories(zephyr_interface
28    INTERFACE ${REMOTE_ZEPHYR_DIR}/include/public)
29endif()
30
31target_sources(app PRIVATE src/main.c)
32
33include(ExternalProject)
34