cmake: make main a component again

* Original commit: espressif/esp-idf@d9939cedd9
This commit is contained in:
Renz Christian Bagaporo
2018-09-11 09:44:12 +08:00
committed by suren-gabrielyan-espressif
parent fed787f54f
commit 67173f6770
3 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,6 @@
set(COMPONENT_SRCDIRS ".") set(COMPONENT_SRCS "mdns.c"
"mdns_console.c"
"mdns_networking.c")
set(COMPONENT_ADD_INCLUDEDIRS "include") set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_PRIV_INCLUDEDIRS "private_include") set(COMPONENT_PRIV_INCLUDEDIRS "private_include")
set(COMPONENT_REQUIRES lwip mbedtls console tcpip_adapter) set(COMPONENT_REQUIRES lwip mbedtls console tcpip_adapter)

View File

@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists # The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly # in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS main/mdns_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mdns-test) project(mdns-test)

View File

@ -0,0 +1,4 @@
set(COMPONENT_SRCS "mdns_example_main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()