1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 5project(crime) 6 7set(BASE_PATH "../../../../../subsys/net/lib/http/") 8include_directories(${BASE_PATH}/headers) 9 10FILE(GLOB app_sources src/main.c) 11target_sources(app PRIVATE ${app_sources}) 12 13set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/) 14 15set(source_file_index src/index.html) 16generate_inc_file_for_target(app ${source_file_index} ${gen_dir}/index.html.inc) 17generate_inc_file_for_target(app ${source_file_index} ${gen_dir}/index.html.gz.inc --gzip) 18 19set(source_file_not_found src/not_found_page.html) 20generate_inc_file_for_target(app ${source_file_not_found} ${gen_dir}/not_found_page.html.inc) 21generate_inc_file_for_target(app ${source_file_not_found} ${gen_dir}/not_found_page.html.gz.inc --gzip) 22 23zephyr_linker_sources(SECTIONS sections-rom.ld) 24zephyr_iterable_section(NAME http_resource_desc_test_http_service KVMA RAM_REGION GROUP RODATA_REGION SUBALIGN ${CONFIG_LINKER_ITERABLE_SUBALIGN}) 25