zephyr/samples/net/cloud/google_iot_mqtt/CMakeLists.txt

16 lines
519 B
CMake
Raw Normal View History

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(NONE)
if(NOT EXISTS ${APPLICATION_SOURCE_DIR}/src/private_info/key.c)
message(FATAL_ERROR "!!!!!! Generate key file before continuing. See README !!!!!")
endif()
FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
target_sources(app PRIVATE ${APPLICATION_SOURCE_DIR}/src/private_info/key.c)
zephyr_include_directories(${APPLICATION_SOURCE_DIR}/src/tls_config)