1# Copyright (c) 2018-2020 O.S.Systems 2# 3# SPDX-License-Identifier: Apache-2.0 4 5cmake_minimum_required(VERSION 3.20.0) 6 7# This application has its own Kconfig options. 8set(KCONFIG_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/Kconfig) 9 10find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 11project(updatehub) 12 13target_sources(app PRIVATE src/main.c) 14 15if(CONFIG_UPDATEHUB_DTLS) 16 set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/) 17 18 foreach(inc_file 19 servercert.der 20 privkey.der 21 ) 22 generate_inc_file_for_target( 23 ${ZEPHYR_CURRENT_LIBRARY} 24 src/certificates/${inc_file} 25 ${gen_dir}/${inc_file}.inc 26 ) 27 endforeach() 28endif() 29