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(test2_suit) 11include(../../cmake/test_template.cmake) 12 13set(py_command 14 zcbor 15 code 16 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest2.cddl 17 --output-cmake ${PROJECT_BINARY_DIR}/manifest2.cmake 18 -t 19 SUIT_Outer_Wrapper 20 SUIT_Command_Sequence 21 SUIT_Authentication_Wrapper 22 -d 23 ${bit_arg} 24 ) 25 26execute_process( 27 COMMAND 28 ${py_command} 29 COMMAND_ERROR_IS_FATAL ANY 30 ) 31 32include(${PROJECT_BINARY_DIR}/manifest2.cmake) 33 34target_link_libraries(manifest2 PRIVATE zephyr_interface) 35target_link_libraries(app PRIVATE manifest2) 36 37if (NOT VERBOSE) 38 # VERBOSE means including printk which doesn't build with these options. 39 target_compile_options(manifest2 PRIVATE -Wpedantic -Wconversion -Wdouble-promotion) 40endif() 41