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