# # Copyright (c) 2020 Nordic Semiconductor ASA # # SPDX-License-Identifier: Apache-2.0 # cmake_minimum_required(VERSION 3.13.1) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(test2_simple) include(../../cmake/test_template.cmake) set(py_command zcbor code -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/pet.cddl --output-cmake ${PROJECT_BINARY_DIR}/pet.cmake -t Pet -e ${bit_arg} --short-names --file-header ${CMAKE_CURRENT_LIST_DIR}/file_header_copyright.txt ) execute_process( COMMAND ${py_command} COMMAND_ERROR_IS_FATAL ANY ) include(${PROJECT_BINARY_DIR}/pet.cmake) target_link_libraries(pet PRIVATE zephyr_interface) target_link_libraries(app PRIVATE pet)