fix(mdns): reference protocol_examples_common from IDF

This makes the example project usable from the component registry
This commit is contained in:
Ivan Grokhotkov
2023-09-21 16:27:13 +02:00
committed by David Cermak
parent 025ede12e8
commit c83b76ea8f
2 changed files with 2 additions and 4 deletions

View File

@ -2,9 +2,5 @@
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS "..")
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
list(APPEND EXTRA_COMPONENT_DIRS "../../../common_components/protocol_examples_common")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mdns_test)

View File

@ -3,3 +3,5 @@ dependencies:
idf: ">=5.0"
espressif/mdns:
version: "^1.0.0"
protocol_examples_common:
path: ${IDF_PATH}/examples/common_components/protocol_examples_common