Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / examples / all-clusters-app / esp32 / CMakeLists.txt
1 #
2 #    Copyright (c) 2021 Project CHIP Authors
3 #    All rights reserved.
4 #
5 #    Licensed under the Apache License, Version 2.0 (the "License");
6 #    you may not use this file except in compliance with the License.
7 #    You may obtain a copy of the License at
8 #
9 #        http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #    Unless required by applicable law or agreed to in writing, software
12 #    distributed under the License is distributed on an "AS IS" BASIS,
13 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #    See the License for the specific language governing permissions and
15 #    limitations under the License.
16
17 # The following lines of boilerplate have to be in your project's
18 # CMakeLists in this exact order for cmake to work correctly
19 cmake_minimum_required(VERSION 3.5)
20 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
21
22 # The list of extra component dirs must be in sync with that in all-clusters-app/esp32/Makefile
23 set(EXTRA_COMPONENT_DIRS
24     "${CMAKE_CURRENT_LIST_DIR}/third_party/connectedhomeip/config/esp32/components"
25     "${CMAKE_CURRENT_LIST_DIR}/../../common/m5stack-tft/repo/components"
26     "${CMAKE_CURRENT_LIST_DIR}/../../common/QRCode"
27     "${CMAKE_CURRENT_LIST_DIR}/../../common/screen-framework"
28 )
29
30 project(chip-all-clusters-app)
31 idf_build_set_property(CXX_COMPILE_OPTIONS "-std=c++14;-Os;-DLWIP_IPV6_SCOPES=0;-DCHIP_HAVE_CONFIG_H" APPEND)
32 idf_build_set_property(C_COMPILE_OPTIONS "-Os;-DLWIP_IPV6_SCOPES=0" APPEND)