# Copyright 2025-2026 NXP
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

if(CONFIG_BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU1 OR
   CONFIG_BOARD_FRDM_MCXN947_MCXN947_CPU1 OR
   CONFIG_BOARD_MCX_N9XX_EVK_MCXN947_CPU1 OR
   CONFIG_BOARD_MIMXRT1180_EVK_MIMXRT1189_CM7 OR
   CONFIG_BOARD_FRDM_IMXRT1186_MIMXRT1186_CM7)
  message(STATUS "${BOARD}/${BOARD_QUALIFIERS} compile as remote in this sample")
else()
  message(FATAL_ERROR "${BOARD}/${BOARD_QUALIFIERS} is not supported for this sample")
endif()

project(hwspinlock_remote)

target_sources(app PRIVATE src/main.c)
