zephyr/samples/subsys/ipc/openamp/CMakeLists.txt

32 lines
939 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.8.2)
# 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:
set(PLATFORM_DIR "${CMAKE_CURRENT_SOURCE_DIR}/platform")
target_sources(app PRIVATE src/main_master.c
${PLATFORM_DIR}/platform.c
${PLATFORM_DIR}/platform_ops.c
${PLATFORM_DIR}/resource_table.c)
include(ExternalProject)
ExternalProject_Add(
openamp_remote
SOURCE_DIR ${APPLICATION_SOURCE_DIR}/remote
INSTALL_COMMAND "" # This particular build system has no install command
BUILD_BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/openamp_remote-prefix/src/openamp_remote-build/zephyr/zephyr.bin"
)
add_dependencies(core_m0_inc_target openamp_remote)
target_include_directories(app PRIVATE ${PLATFORM_DIR})