2 # Copyright (c) 2021 Project CHIP Authors
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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
19 # The list of src and include dirs must be in sync with that in temperature-measurement-app/esp32/main/component.mk
20 idf_component_register(PRIV_INCLUDE_DIRS
21 "${CMAKE_CURRENT_LIST_DIR}"
22 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app"
23 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
24 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/reporting"
25 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
26 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/third_party/nlio/repo/include"
27 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src"
28 "${CMAKE_CURRENT_LIST_DIR}/include"
30 "${CMAKE_CURRENT_LIST_DIR}"
31 "${CMAKE_CURRENT_LIST_DIR}/gen"
32 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/server"
33 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/util"
34 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/reporting"
35 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/basic"
36 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/bindings"
37 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/network-commissioning"
38 "${CMAKE_SOURCE_DIR}/third_party/connectedhomeip/src/app/clusters/temperature-measurement-server"
39 PRIV_REQUIRES chip QRCode tft spidriver bt screen-framework)
41 set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 14)
42 target_compile_options(${COMPONENT_LIB} PRIVATE "-DLWIP_IPV6_SCOPES=0" "-DCHIP_HAVE_CONFIG_H")