23 lines
565 B
CMake
23 lines
565 B
CMake
cmake_minimum_required(VERSION 3.8.2)
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(http_server)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|
|
|
|
include($ENV{ZEPHYR_BASE}/samples/net/common/common.cmake)
|
|
|
|
# List of files that are used to generate .h file that can be included
|
|
# into .c file.
|
|
foreach(inc_file
|
|
echo-apps-cert.der
|
|
echo-apps-key.der
|
|
index.html
|
|
)
|
|
generate_inc_file_for_target(
|
|
app
|
|
src/${inc_file}
|
|
${ZEPHYR_BINARY_DIR}/include/generated/${inc_file}.inc
|
|
)
|
|
endforeach()
|