Files
esp-matter/examples/test_apps/test_optional_attributes/CMakeLists.txt
T

36 lines
1.1 KiB
CMake

# The following 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)
if(NOT DEFINED ENV{ESP_MATTER_PATH})
message(FATAL_ERROR "Please set ESP_MATTER_PATH to the path of esp-matter repo")
endif(NOT DEFINED ENV{ESP_MATTER_PATH})
if(NOT DEFINED CLI_PROJECT_VER)
set(PROJECT_VER "1.0")
else()
set(PROJECT_VER "${CLI_PROJECT_VER}")
endif()
if(NOT DEFINED CLI_PROJECT_VER_NUMBER)
set(PROJECT_VER_NUMBER 1)
else()
set(PROJECT_VER_NUMBER "${CLI_PROJECT_VER_NUMBER}")
endif()
set(ESP_MATTER_PATH $ENV{ESP_MATTER_PATH})
set(MATTER_SDK_PATH ${ESP_MATTER_PATH}/connectedhomeip/connectedhomeip)
# This should be done before using the IDF_TARGET variable.
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(EXTRA_COMPONENT_DIRS
"${MATTER_SDK_PATH}/config/esp32/components"
"${ESP_MATTER_PATH}/components"
${extra_components_dirs_append})
project(test_optional_attributes)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)