mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 09:42:54 +03:00
New examples/zephyr directory that contains a sample coap-client. Building the coap-client assumes that the zephyrproject has already been installed and set up (default directory ~/zephyrproject).
10 lines
250 B
CMake
10 lines
250 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(coap_client)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|
|
|
|
include(${ZEPHYR_BASE}/samples/net/common/common.cmake)
|