light bulb project include matter path

 

        Hi, I have reviewed the light_bulb app code in NCS2.8.0(include src code/CMakeLists.txt/prj.conf and so on)。
        But I can't find where the path of matter is included, could you please tell me?

BR

Chuan

        

Parents Reply
  •   

            I want to create a project in NCS2.8.0, while my cmake file as blow:

            

    cmake_minimum_required(VERSION 3.13.1)
    
    # Set Zephyr project
    find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
    project(my_matter_project)
    
    # Set Matter SDK path
    set(MATTER_SDK_DIR /path/to/matter)
    
    # Include Matter CMake file
    include(${MATTER_SDK_DIR}/config/nrfconnect/app/CMakeLists.txt)
    
    # Add source file
    target_sources(app PRIVATE src/main.c)

            But when I build this demo, it popup "undefined CONFIG_CHIP", so I think I have not add matter code to my project.

            Could you give me some help? thx 

    BR

    Chuan

Children
Related