1# Copyright (c) 2020 Linumiz 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(hawkbit) 12 13FILE(GLOB app_sources src/*.c) 14target_sources(app PRIVATE ${app_sources}) 15target_sources_ifdef(CONFIG_NET_DHCPV4 app PRIVATE src/dhcp.c) 16 17include(${ZEPHYR_BASE}/samples/net/common/common.cmake) 18 19set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/) 20 21generate_inc_file_for_target( 22 app 23 src/self_sign.der 24 ${gen_dir}/self_sign.der.inc 25 ) 26