# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(udp_server)

OPTION(WIFI_CONFIG "Wi-Fi configutation" OFF)

IF(WIFI_CONFIG)
  idf_build_set_property(COMPILE_DEFINITIONS "-DEXAMPLE_WIFI_SSID=\"$ENV{WIFI_SSID}\"" APPEND)
  idf_build_set_property(COMPILE_DEFINITIONS "-DEXAMPLE_WIFI_PASSWORD=\"$ENV{WIFI_PASSWORD}\"" APPEND)
ENDIF(WIFI_CONFIG)
