mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
24 lines
1.0 KiB
CMake
24 lines
1.0 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
set(PROJECT_VER "1.0")
|
|
set(PROJECT_VER_NUMBER 1)
|
|
|
|
set(ESP_MATTER_PATH $ENV{ESP_MATTER_PATH})
|
|
set(MATTER_SDK_PATH ${ESP_MATTER_PATH}/connectedhomeip/connectedhomeip)
|
|
|
|
set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../components"
|
|
"${MATTER_SDK_PATH}/config/esp32/components")
|
|
|
|
# Set the components to include the tests for.
|
|
set(TEST_COMPONENTS "esp_matter" CACHE STRING "List of components to test")
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
project(unit_test_app)
|
|
|
|
# TODO: Remove -Wno-error=unused-result once submodules are updated to not treat unused return values as errors.
|
|
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual;-Wno-error=unused-result" APPEND)
|
|
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
|
|
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
|
|
# flags that depend on -Wformat
|
|
idf_build_set_property(COMPILE_OPTIONS "-Wno-format-nonliteral;-Wno-format-security" APPEND)
|