2018-02-12 22:19:05 +08:00
|
|
|
# Copyright (c) 2018 Nordic Semiconductor ASA
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
set(BOARD lpcxpresso54114_m4)
|
|
|
|
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
|
|
project(NONE)
|
|
|
|
|
|
|
|
enable_language(C ASM)
|
|
|
|
|
|
|
|
# Location of external dependencies:
|
2018-05-24 22:01:51 +08:00
|
|
|
set(PLATFORM_DIR "${CMAKE_CURRENT_SOURCE_DIR}/platform")
|
2018-02-12 22:19:05 +08:00
|
|
|
|
2018-05-24 22:01:51 +08:00
|
|
|
target_sources(app PRIVATE src/main_master.c
|
|
|
|
${PLATFORM_DIR}/platform.c
|
|
|
|
${PLATFORM_DIR}/platform_ops.c
|
|
|
|
${PLATFORM_DIR}/resource_table.c)
|
2018-02-12 22:19:05 +08:00
|
|
|
|
2018-05-17 20:30:11 +08:00
|
|
|
include(ExternalProject)
|
2018-02-12 22:19:05 +08:00
|
|
|
|
|
|
|
ExternalProject_Add(
|
|
|
|
openamp_remote
|
|
|
|
SOURCE_DIR ${APPLICATION_SOURCE_DIR}/remote
|
|
|
|
INSTALL_COMMAND "" # This particular build system has no install command
|
|
|
|
)
|
|
|
|
add_dependencies(core_m0_inc_target openamp_remote)
|
|
|
|
|
2018-05-17 20:30:11 +08:00
|
|
|
target_include_directories(app PRIVATE ${PLATFORM_DIR})
|