Skip to content

Commit 67173f6

Browse files
cmake: make main a component again
* Original commit: espressif/esp-idf@d9939ce
1 parent fed787f commit 67173f6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

components/mdns/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
set(COMPONENT_SRCDIRS ".")
1+
set(COMPONENT_SRCS "mdns.c"
2+
"mdns_console.c"
3+
"mdns_networking.c")
24
set(COMPONENT_ADD_INCLUDEDIRS "include")
35
set(COMPONENT_PRIV_INCLUDEDIRS "private_include")
46
set(COMPONENT_REQUIRES lwip mbedtls console tcpip_adapter)
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# The following four lines of boilerplate have to be in your project's CMakeLists
1+
# The following lines of boilerplate have to be in your project's CMakeLists
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
set(MAIN_SRCS main/mdns_example_main.c)
6-
75
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
86
project(mdns-test)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(COMPONENT_SRCS "mdns_example_main.c")
2+
set(COMPONENT_ADD_INCLUDEDIRS ".")
3+
4+
register_component()

0 commit comments

Comments
 (0)