1#
2# Copyright (c) 2020 Nordic Semiconductor ASA
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7cmake_minimum_required(VERSION 3.13.1)
8
9find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10project(test1_suit)
11include(../../cmake/test_template.cmake)
12
13set(py_command
14  zcbor
15  code
16  -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest3.cddl
17  --output-cmake ${PROJECT_BINARY_DIR}/manifest3.cmake
18  -t
19  SUIT_Outer_Wrapper
20  SUIT_Command_Sequence
21  SUIT_Authentication_Wrapper
22  -e -d
23  ${bit_arg}
24  )
25
26execute_process(
27  COMMAND ${py_command}
28  COMMAND_ERROR_IS_FATAL ANY
29)
30
31include(${PROJECT_BINARY_DIR}/manifest3.cmake)
32
33target_link_libraries(manifest3 PRIVATE zephyr_interface)
34target_link_libraries(app PRIVATE manifest3)
35