2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2018-02-08 04:34:35 +08:00
|
|
|
# Copyright (c) 2017, NXP
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
set(BOARD lpcxpresso54114_m4)
|
|
|
|
|
|
|
|
|
2020-02-12 22:00:46 +08:00
|
|
|
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
|
2018-10-30 00:00:51 +08:00
|
|
|
|
|
|
|
if(NOT ("${BOARD}" STREQUAL "lpcxpresso54114_m4"))
|
|
|
|
message(FATAL_ERROR "${BOARD} was specified, but this sample only supports lpcxpresso54114_m4")
|
|
|
|
endif()
|
|
|
|
|
2018-02-08 04:34:35 +08:00
|
|
|
include(ExternalProject)
|
|
|
|
|
|
|
|
ExternalProject_Add(
|
|
|
|
ipm_mcux_remote
|
|
|
|
SOURCE_DIR ${APPLICATION_SOURCE_DIR}/remote
|
|
|
|
INSTALL_COMMAND "" # This particular build system has no install command
|
2018-09-19 07:39:14 +08:00
|
|
|
BUILD_BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/ipm_mcux_remote-prefix/src/ipm_mcux_remote-build/zephyr/zephyr.bin"
|
2018-02-08 04:34:35 +08:00
|
|
|
)
|
|
|
|
|
2018-10-25 22:54:09 +08:00
|
|
|
project(ipm_mcux)
|
2018-02-08 04:34:35 +08:00
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main_master.c)
|
|
|
|
add_dependencies(core_m0_inc_target ipm_mcux_remote)
|